This commit is contained in:
Sinai 2021-08-19 16:19:49 +10:00
parent 4e3203a91b
commit a2f22051f0

View File

@ -15,7 +15,7 @@ namespace UnityExplorer
{ {
var method = typeof(Assembly).GetMethod(nameof(Assembly.GetTypes), new Type[0]); var method = typeof(Assembly).GetMethod(nameof(Assembly.GetTypes), new Type[0]);
var processor = ExplorerCore.Harmony.CreateProcessor(method); var processor = ExplorerCore.Harmony.CreateProcessor(method);
processor.AddFinalizer(typeof(ReflectionPatches).GetMethod(nameof(ReflectionPatches.Assembly_GetTypes))); processor.AddFinalizer(typeof(ReflectionPatches).GetMethod(nameof(Assembly_GetTypes)));
processor.Patch(); processor.Patch();
} }
catch (Exception ex) catch (Exception ex)