dotnet7 compat, DLSS, network manager rewrite and other fixes
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
//#define COMPILE_WITH_DLSS
|
||||
|
||||
using Flax.Build;
|
||||
using Flax.Build.NativeCpp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
|
||||
public class Game : GameModule
|
||||
{
|
||||
@@ -13,7 +16,7 @@ public class Game : GameModule
|
||||
|
||||
// C#-only scripting
|
||||
BuildCSharp = true;
|
||||
BuildNativeCode = true;
|
||||
//BuildNativeCode = true;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -25,7 +28,14 @@ public class Game : GameModule
|
||||
|
||||
base.Setup(options);
|
||||
|
||||
options.PublicDependencies.Add("FidelityFXFSR");
|
||||
options.PrivateDependencies.Add("FidelityFXFSR");
|
||||
|
||||
//options.ScriptingAPI.FileReferences.Add(Path.Combine(Globals.EngineRoot, "Source", "Platforms", "DotNet", "Newtonsoft.Json.dll"));
|
||||
|
||||
#if COMPILE_WITH_DLSS
|
||||
DLSS.ConditionalImport(options, options.PrivateDependencies);
|
||||
options.PrivateDefinitions.Add("COMPILE_WITH_DLSS");
|
||||
#endif
|
||||
// Here you can modify the build options for your game module
|
||||
// To reference another module use: options.PublicDependencies.Add("Audio");
|
||||
// To add C++ define use: options.PublicDefinitions.Add("COMPILE_WITH_FLAX");
|
||||
|
||||
Reference in New Issue
Block a user