Skip to content

Commit

Permalink
Merge pull request #8 from loongly/dev1
Browse files Browse the repository at this point in the history
Dev1 merge to master
  • Loading branch information
loongly authored Sep 11, 2021
2 parents a3be984 + 64e4e49 commit bb11c04
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BindGenerater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static void ReplaceMscorlib(string libDir, string outDir)
foreach (var fi in dir.GetFiles())
{
var tarPath = Path.Combine(outDir, fi.Name);
if (File.Exists(tarPath))
if (File.Exists(tarPath) || fi.Name == "netstandard.dll") // netstandard reserved for unity2020 build bug
File.Copy(Path.Combine(srcDir, fi.Name), tarPath, true);
}
}
Expand Down
Binary file modified ScriptEngine/Tools/Binder.exe
Binary file not shown.
Binary file modified ScriptEngine/Tools/Binder.pdb
Binary file not shown.
Binary file added ScriptEngine/Tools/lib/iOS/netstandard.dll
Binary file not shown.
Binary file modified ScriptEngine/lib/libScriptEngine.a
Binary file not shown.
5 changes: 5 additions & 0 deletions ScriptEngine/main/Mediator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ void* get_il2cpp_internal_ptr(Il2CppObject* obj)

MonoString* get_mono_string(Il2CppString* str)
{
if(str == NULL)
return NULL;
/*char* ptr = (char*)str;
int32_t* lenPtr = (int32_t*)(ptr + sizeof(void *) * 2);
int32_t len = *lenPtr;
Expand All @@ -180,6 +182,9 @@ MonoString* get_mono_string(Il2CppString* str)
}
Il2CppString* get_il2cpp_string(MonoString* str)
{
if(str == NULL)
return NULL;

int32_t len = mono_string_length(str);
Il2CppChar* chars = (Il2CppChar* )mono_string_to_utf16(str);

Expand Down

0 comments on commit bb11c04

Please sign in to comment.