_some prog, needs aot for corlib

This commit is contained in:
2026-02-26 01:22:23 +02:00
parent d7d37bce01
commit 1ab600b020
20 changed files with 336 additions and 13 deletions

View File

@@ -176,16 +176,19 @@ void onEngineUnloading(MAssembly* assembly);
bool ScriptingService::Init()
{
LOG(Info, "ScriptingService::Init");
PROFILE_MEM(Scripting);
Stopwatch stopwatch;
// Initialize managed runtime
LOG(Info, "ScriptingService::Init MCore::LoadEngine");
if (MCore::LoadEngine())
{
LOG(Fatal, "C# runtime initialization failed.");
return true;
}
LOG(Info, "ScriptingService::Init MCore::CreateScriptingAssemblyLoadContext");
MCore::CreateScriptingAssemblyLoadContext();
// Cache root domain