1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 18:53:29 +08:00

priority fix

This commit is contained in:
2025-11-11 23:18:26 +08:00
parent af3b46be11
commit d8fa46d495

View File

@@ -10,7 +10,7 @@ public static class CommonAPIWrapper
{
if (!Chainloader.PluginInfos.TryGetValue(CommonAPIPlugin.GUID, out var commonAPIPlugin) ||
commonAPIPlugin.Metadata.Version > new System.Version(1, 6, 7, 0)) return;
harmony.Patch(AccessTools.Method(typeof(GameOption), nameof(GameOption.InitKeys)), new HarmonyMethod(typeof(CommonAPIWrapper), nameof(PatchInitKeys)));
harmony.Patch(AccessTools.Method(typeof(GameOption), nameof(GameOption.InitKeys)), new HarmonyMethod(AccessTools.Method(typeof(CommonAPIWrapper), nameof(PatchInitKeys)), Priority.First));
}
public static bool PatchInitKeys(GameOption __instance)