We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e7918c commit 64e4e49Copy full SHA for 64e4e49
ScriptEngine/lib/libScriptEngine.a
96 Bytes
ScriptEngine/main/Mediator.cpp
@@ -168,6 +168,8 @@ void* get_il2cpp_internal_ptr(Il2CppObject* obj)
168
169
MonoString* get_mono_string(Il2CppString* str)
170
{
171
+ if(str == NULL)
172
+ return NULL;
173
/*char* ptr = (char*)str;
174
int32_t* lenPtr = (int32_t*)(ptr + sizeof(void *) * 2);
175
int32_t len = *lenPtr;
@@ -180,6 +182,9 @@ MonoString* get_mono_string(Il2CppString* str)
180
182
}
181
183
Il2CppString* get_il2cpp_string(MonoString* str)
184
185
186
187
+
188
int32_t len = mono_string_length(str);
189
Il2CppChar* chars = (Il2CppChar* )mono_string_to_utf16(str);
190
0 commit comments