Skip to content

Commit 232ae7e

Browse files
committed
* mono_runtime_object_init
1 parent 5d0b4e8 commit 232ae7e

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

ScriptEngine/ScriptEngine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifdef _WIN32
1010
#define DLLEXPORT __declspec(dllexport)
1111
#else
12-
#define DLLEXPORT __attribute__((visibility("default"))) __attribute__((used))
12+
#define DLLEXPORT
1313
#endif
1414

1515
const char* il2cpp_exception = NULL;

ScriptEngine/lib/libScriptEngine.a

-103 KB
Binary file not shown.

ScriptEngine/main/Mediator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ MonoObject* get_mono_wrapper_object(Il2CppObject* il2cpp, MonoClass* m_class)
479479
if (mono == NULL && m_class != NULL)
480480
{
481481
mono = mono_object_new(g_domain, m_class);
482+
mono_runtime_object_init (mono);
482483
call_wrapper_init(il2cpp, mono);
483484
}
484485
return mono;

0 commit comments

Comments
 (0)