mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 09:37:27 +08:00
[RF] Move some settings to TimeSavingConfig
This commit is contained in:
26
AquaMai/TimeSaving/SkipGameOverScreen.cs
Normal file
26
AquaMai/TimeSaving/SkipGameOverScreen.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using HarmonyLib;
|
||||
using Monitor;
|
||||
using Process;
|
||||
|
||||
namespace AquaMai.TimeSaving;
|
||||
|
||||
public class SkipGameOverScreen
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(GameOverMonitor), "IsPlayEnd")]
|
||||
public static bool GameOverMonitorPlayEnd(ref bool __result)
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(GameOverProcess), "OnUpdate")]
|
||||
public static void GameOverProcessOnUpdate(ref GameOverProcess.GameOverSequence ____state)
|
||||
{
|
||||
if (____state == GameOverProcess.GameOverSequence.SkyChange)
|
||||
{
|
||||
____state = GameOverProcess.GameOverSequence.Disp;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user