* Fix a bug with Il2Cpp reflection causing TargetInvocationException and other weird issues.
This commit is contained in:
sinaioutlander committed 2020-10-30 19:24:42 +11:00
1 parent 4263cef26a
commit f4ba14cd13
4 files changed
+24 -4

No files matched your search

+7
View File
@@ -49,6 +49,7 @@ namespace Explorer.Tests
#if CPP
public static Il2CppSystem.Collections.Generic.HashSet<string> ILHashSetTest;
public static Il2CppReferenceArray<Il2CppSystem.Object> testRefArray;
#endif
public TestClass()
@@ -64,6 +65,12 @@ namespace Explorer.Tests
GameObject.DontDestroyOnLoad(TestTexture);
GameObject.DontDestroyOnLoad(TestSprite);
testRefArray = new Il2CppReferenceArray<Il2CppSystem.Object>(5);
for (int i = 0; i < 5; i++)
{
testRefArray[i] = "hi " + i;
}
//// test loading a tex from file
//var dataToLoad = System.IO.File.ReadAllBytes(@"Mods\Explorer\Tex_Nemundis_Nebula.png");
//ExplorerCore.Log($"Tex load success: {TestTexture.LoadImage(dataToLoad, false)}");