* Added unstrip fix for GetRootSceneObjects using Il2CPP internal call
This commit is contained in:
sinaioutlander
2020-10-09 21:11:15 +11:00
parent 35eb78ca5d
commit 867370ccee
15 changed files with 532 additions and 446 deletions

View File

@ -3,6 +3,11 @@ using System.Collections.Generic;
using System;
using UnityEngine;
using System.Reflection;
using System.Runtime.InteropServices;
#if CPP
using UnhollowerBaseLib;
using UnityEngine.SceneManagement;
#endif
namespace Explorer.Tests
{
@ -32,6 +37,14 @@ namespace Explorer.Tests
public static int StaticField = 5;
public int NonStaticField;
#if CPP
public static IntPtr FindICall(string name) => il2cpp_resolve_icall(name);
[DllImport("GameAssembly", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
private static extern IntPtr il2cpp_resolve_icall([MarshalAs(UnmanagedType.LPStr)] string name);
#endif
#if CPP
public static Il2CppSystem.Collections.Generic.HashSet<string> ILHashSetTest;
#endif