mirror of https://github.com/hykilpikonna/AquaDX
28 lines
745 B
C#
28 lines
745 B
C#
![]() |
using HarmonyLib;
|
||
|
using Monitor;
|
||
|
|
||
|
namespace AquaMai
|
||
|
{
|
||
|
public class CutsceneSkipping
|
||
|
{
|
||
|
/*
|
||
|
* 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;
|
||
|
}
|
||
|
}
|
||
|
}
|