mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Initialize ScriptGlue whenever ScriptEngine loads assemblies
This commit is contained in:
@@ -214,7 +214,6 @@ static class ScriptEngine
|
||||
public static void Init()
|
||||
{
|
||||
InitMono();
|
||||
ScriptGlue.Init();
|
||||
|
||||
LoadScriptAssemblies();
|
||||
}
|
||||
@@ -304,6 +303,8 @@ static class ScriptEngine
|
||||
{
|
||||
Debug.Profiler.ProfileFunction!();
|
||||
|
||||
ScriptGlue.Init();
|
||||
|
||||
CreateAppDomain("GlitchyEngineScriptRuntime");
|
||||
(s_CoreAssembly, s_CoreAssemblyImage) = LoadAssembly("resources/scripts/ScriptCore.dll", _debuggingEnabled);
|
||||
|
||||
@@ -844,7 +845,7 @@ static class ScriptEngine
|
||||
|
||||
#unwarn
|
||||
void*[2] args = .(&entityId, monoReflectionType);
|
||||
|
||||
|
||||
let method = Classes.EntityEditor.GetMethod("ShowDefaultEntityEditor", 2);
|
||||
|
||||
Classes.EntityEditor.Invoke(method, null, &args);
|
||||
|
||||
Reference in New Issue
Block a user