diff --git a/AquaMai/AquaMai.csproj b/AquaMai/AquaMai.csproj index 64f202c7..4e94006d 100644 --- a/AquaMai/AquaMai.csproj +++ b/AquaMai/AquaMai.csproj @@ -288,6 +288,7 @@ + diff --git a/AquaMai/AquaMai.toml b/AquaMai/AquaMai.toml index aa311867..a5b96249 100644 --- a/AquaMai/AquaMai.toml +++ b/AquaMai/AquaMai.toml @@ -42,6 +42,8 @@ ExecOnEntry="" ExtendTimer=true # Save immediate after playing a song ImmediateSave=true +# Allow login with higher data version +SkipVersionCheck=true [Performance] # Disable some useless delays to speed up the game boot process diff --git a/AquaMai/Config.cs b/AquaMai/Config.cs index fdbe1dda..f8caa565 100644 --- a/AquaMai/Config.cs +++ b/AquaMai/Config.cs @@ -30,11 +30,12 @@ namespace AquaMai public bool SkipEventInfo { get; set; } public bool ImmediateSave { get; set; } public bool LoadLocalBga { get; set; } + public bool SkipVersionCheck { get; set; } public string CustomVersionString { get; set; } public string ExecOnIdle { get; set; } public string ExecOnEntry { get; set; } } - + public class PerformanceConfig { public bool ImproveLoadSpeed { get; set; } diff --git a/AquaMai/UX/SkipVersionCheck.cs b/AquaMai/UX/SkipVersionCheck.cs new file mode 100644 index 00000000..6adc0391 --- /dev/null +++ b/AquaMai/UX/SkipVersionCheck.cs @@ -0,0 +1,16 @@ +using HarmonyLib; +using Process.Entry.State; + +namespace AquaMai.UX +{ + public class SkipVersionCheck + { + [HarmonyPrefix] + [HarmonyPatch(typeof(ConfirmPlay), "IsValidVersion")] + public static bool IsValidVersion(ref bool __result) + { + __result = true; + return false; + } + } +}