[+] Allow login with higher data version

pull/46/head
Clansty 2024-07-09 16:18:54 +08:00
parent 222ed29b6c
commit 5772ff78e6
4 changed files with 21 additions and 1 deletions

View File

@ -288,6 +288,7 @@
<Compile Include="UX\RunCommandOnEvents.cs" /> <Compile Include="UX\RunCommandOnEvents.cs" />
<Compile Include="UX\SinglePlayer.cs" /> <Compile Include="UX\SinglePlayer.cs" />
<Compile Include="UX\SkipEventInfo.cs" /> <Compile Include="UX\SkipEventInfo.cs" />
<Compile Include="UX\SkipVersionCheck.cs" />
<Compile Include="UX\SkipWarningScreen.cs" /> <Compile Include="UX\SkipWarningScreen.cs" />
<Compile Include="UX\SkipToMusicSelection.cs" /> <Compile Include="UX\SkipToMusicSelection.cs" />
</ItemGroup> </ItemGroup>

View File

@ -42,6 +42,8 @@ ExecOnEntry=""
ExtendTimer=true ExtendTimer=true
# Save immediate after playing a song # Save immediate after playing a song
ImmediateSave=true ImmediateSave=true
# Allow login with higher data version
SkipVersionCheck=true
[Performance] [Performance]
# Disable some useless delays to speed up the game boot process # Disable some useless delays to speed up the game boot process

View File

@ -30,6 +30,7 @@ namespace AquaMai
public bool SkipEventInfo { get; set; } public bool SkipEventInfo { get; set; }
public bool ImmediateSave { get; set; } public bool ImmediateSave { get; set; }
public bool LoadLocalBga { get; set; } public bool LoadLocalBga { get; set; }
public bool SkipVersionCheck { get; set; }
public string CustomVersionString { get; set; } public string CustomVersionString { get; set; }
public string ExecOnIdle { get; set; } public string ExecOnIdle { get; set; }
public string ExecOnEntry { get; set; } public string ExecOnEntry { get; set; }

View File

@ -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;
}
}
}