This commit is contained in:
2023-09-15 17:19:18 +03:00
parent bac8b3c70d
commit a927ba7806

View File

@@ -35,13 +35,10 @@ public class GameTarget : GameProjectTarget
public override string GetOutputFilePath(BuildOptions options, TargetOutputType? outputType = null) public override string GetOutputFilePath(BuildOptions options, TargetOutputType? outputType = null)
{ {
if (!Environment.CommandLine.Contains("Cooker")) // Hacky way to detect if this is run during cooking if (!Environment.CommandLine.Contains("Cooker")) // Detect if this is run during editor cooking
{ {
// Output files directly to cooked folders (used only during development) // Output files directly to cooked folders (used only during development)
if (options.Configuration == TargetConfiguration.Development || options.Configuration == TargetConfiguration.Debug) options.OutputFolder = Path.Combine(FolderPath, "..", "Output", "Windows");
options.OutputFolder = Path.Combine(FolderPath, "..", "Output", "WindowsDevelopment");
else if (options.Configuration == TargetConfiguration.Release)
options.OutputFolder = Path.Combine(FolderPath, "..", "Output", "WindowsDevelopment");//options.OutputFolder = Path.Combine(FolderPath, "..", "Output", "WindowsRelease");
} }
return base.GetOutputFilePath(options, outputType); return base.GetOutputFilePath(options, outputType);