[+] Mark supported game versions with attributes

This commit is contained in:
Clansty
2024-10-27 23:34:41 +08:00
parent 6bb2685e03
commit ff2ed50dea
9 changed files with 54 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using AquaMai.Attributes;
using AquaMai.Helpers;
using HarmonyLib;
using Mai2.Mai2Cue;
@@ -86,13 +87,8 @@ public class QuickSkip
}
}
public static void DoCustomPatch(HarmonyLib.Harmony h)
{
if (GameInfo.GameVersion < 23000) return;
h.PatchAll(typeof(FestivalAndLaterQuickRetryPatch));
}
private class FestivalAndLaterQuickRetryPatch
[GameVersion(23000)]
public class FestivalAndLaterQuickRetryPatch
{
[HarmonyPrefix]
[HarmonyPatch(typeof(QuickRetry), "IsQuickRetryEnable")]