Add support for binary modules with native-code only

This commit is contained in:
Wojtek Figat
2021-02-25 13:01:15 +01:00
parent 3da6f9186c
commit b193a7abc4
21 changed files with 123 additions and 27 deletions

View File

@@ -104,7 +104,7 @@ bool CacheMethods()
if (Internal_SendLog && Internal_SendLogException && Internal_GetStackTrace)
return false;
auto engine = GetBinaryModuleFlaxEngine()->Assembly;
auto engine = ((NativeBinaryModule*)GetBinaryModuleFlaxEngine())->Assembly;
if (engine == nullptr || !engine->IsLoaded())
return true;
auto debugLogHandlerClass = engine->GetClass("FlaxEngine.DebugLogHandler");