-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RF] Move some settings to TimeSavingConfig
- Loading branch information
Showing
11 changed files
with
131 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using HarmonyLib; | ||
using Monitor; | ||
|
||
namespace AquaMai.TimeSaving; | ||
|
||
public class IWontTapOrSlideVigorously | ||
{ | ||
[HarmonyPrefix] | ||
[HarmonyPatch(typeof(PlInformationMonitor), "IsPlayPlInfoEnd")] | ||
public static bool Patch(ref bool __result) | ||
{ | ||
__result = true; | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 28 additions & 28 deletions
56
AquaMai/UX/SkipWarningScreen.cs → AquaMai/TimeSaving/SkipWarningScreen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
using HarmonyLib; | ||
using Monitor; | ||
|
||
namespace AquaMai.UX | ||
{ | ||
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; | ||
} | ||
} | ||
} | ||
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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters