[RF] Move some settings to TimeSavingConfig

This commit is contained in:
Clansty
2024-09-27 19:13:53 +08:00
parent 24e6808984
commit 9605264b9a
11 changed files with 131 additions and 96 deletions

View File

@@ -0,0 +1,28 @@
using HarmonyLib;
using Monitor;
namespace AquaMai.TimeSaving
{
public class SkipWarningScreen
{
/*
* Patch PlayLogo to disable the warning screen
*/
[HarmonyPrefix]
[HarmonyPatch(typeof (WarningMonitor), "PlayLogo")]
public static bool PlayLogo()
{
// Return false to block the original method
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof (WarningMonitor), "IsLogoAnimationEnd")]
public static bool IsLogoAnimationEnd(ref bool __result)
{
// Always return true to indicate the animation has ended
__result = true;
return false;
}
}
}