NVIDIA GameWorks Integration

is my solution :slight_smile:
File: SubstanceCore.Build.cs
LineNumber 105 to 132

             //Toggle on our flag if we are building for PS4
            //IncludePS4Files = true;
        }
    }

    //Overwrite PS4 SDK if the files don't exist - Check both Engine and Project directories
    //string ConsoleFilePath = "SubstanceCore\\Private\\SubstanceCorePS4Utils.h";
    //string BaseEnginePath = Path.Combine("..", "Plugins", "Runtime", "Substance", "Source");
    //string BaseProjectPath = Path.Combine("Plugins", "Runtime", "Substance", "Source");
    //string ConsoleEngineFilePath = Path.Combine(BaseEnginePath, ConsoleFilePath);
    //string ProjectParentDir = System.IO.Directory.GetParent(Target.ProjectFile.ToString().ToString());
    //string ConsoleProjectFilePath = Path.Combine(ProjectParentDir, BaseProjectPath, ConsoleFilePath);

    //Check both possible locations of where the console files could be
    //bool ConsoleFilesFoundInEnginePluginDir = File.Exists(ConsoleEngineFilePath) && IncludePS4Files;
    //bool ConsoleFilesFoundInProjectPluginDir = File.Exists(ConsoleProjectFilePath) && IncludePS4Files;

    //Craft the project file location to test as well
    //IncludePS4Files = (ConsoleFilesFoundInEnginePluginDir || ConsoleFilesFoundInProjectPluginDir) && IncludePS4Files;

    //PublicDefinitions.Add("SUBSTANCE_HAS_PS4_SDK=" + (IncludePS4Files ? "1" : "0"));

    //if (IncludePS4Files)
    //    UnrealBuildTool.Log.WriteLine(LogEventType.Log, "Substance Editor Plugin: PS4 Cooking Enabled");
}

}
}