Browse Source

Added BindingFlags to get PatchProcessor patch target

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
c87622196e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Loader/HarmonyProtector.cs

+ 1
- 1
IPA.Loader/Loader/HarmonyProtector.cs View File

@ -29,7 +29,7 @@ namespace IPA.Loader
} }
var target = typeof(PatchProcessor).GetMethod("Patch"); var target = typeof(PatchProcessor).GetMethod("Patch");
var patch = typeof(HarmonyProtector).GetMethod(nameof(PatchProcessor_Patch_Prefix));
var patch = typeof(HarmonyProtector).GetMethod(nameof(PatchProcessor_Patch_Prefix), BindingFlags.NonPublic | BindingFlags.Static);
inst.Patch(target, new HarmonyMethod(patch)); inst.Patch(target, new HarmonyMethod(patch));
} }


Loading…
Cancel
Save