mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-11 15:37:27 +08:00
[+] Config
This commit is contained in:
28
AquaMai/UX/SkipWarningScreen.cs
Normal file
28
AquaMai/UX/SkipWarningScreen.cs
Normal file
@@ -0,0 +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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user