[F] PracticeMode 在 1.50 以下版本的兼容性

This commit is contained in:
Clansty 2025-12-18 19:20:42 +08:00
parent a52bfd4596
commit a2eab0f5c0
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
2 changed files with 3 additions and 1 deletions

View File

@ -230,4 +230,6 @@ public static class Shim
}
public static readonly Action<bool> Set_GameManager_IsNormalMode = GameInfo.GameVersion < 25500 ? (_) => { } : (value) => { GameManager.IsNormalMode = value; };
private static readonly Func<bool> IsKaleidxScopeModeGetter = GameInfo.GameVersion < 25000 ? () => false : () => GameManager.IsKaleidxScopeMode;
public static bool IsKaleidxScopeMode => IsKaleidxScopeModeGetter();
}

View File

@ -261,7 +261,7 @@ public class PracticeMode
[HarmonyPrefix]
public static bool NotesManagerPostUpdateTimer(bool ____isPlaying, Stopwatch ____stopwatch, ref float ____curMSec, ref float ____curMSecPre, float ____msecStartGap)
{
if (isInAdvDemo || GameManager.IsKaleidxScopeMode)
if (isInAdvDemo || Shim.IsKaleidxScopeMode)
{
return true;
}