Fix Web to run without dotnet

This commit is contained in:
Wojtek Figat
2026-02-16 11:49:34 +01:00
parent 8a760dc1e2
commit 7bc687194f
7 changed files with 28 additions and 5 deletions

View File

@@ -573,6 +573,7 @@ bool Scripting::Load()
auto* flaxEngineModule = (NativeBinaryModule*)GetBinaryModuleFlaxEngine();
if (!flaxEngineModule->Assembly->IsLoaded())
{
#if USE_CSHARP
String flaxEnginePath = Globals::BinariesFolder / TEXT("FlaxEngine.CSharp.dll");
#if USE_MONO_AOT
if (!FileSystem::FileExists(flaxEnginePath))
@@ -583,6 +584,7 @@ bool Scripting::Load()
LOG(Error, "Failed to load FlaxEngine C# assembly.");
return true;
}
#endif
flaxEngineModule->CanReload = false;
flaxEngineModule->Assembly->_canReload = false;
onEngineLoaded(flaxEngineModule->Assembly);