上传文件至 Common
This commit is contained in:
22
Common/SkipWarningScreen.cs
Normal file
22
Common/SkipWarningScreen.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using HarmonyLib;
|
||||
using Monitor;
|
||||
|
||||
namespace SinmaiAssist.Common;
|
||||
|
||||
public class SkipWarningScreen
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(WarningMonitor), "PlayLogo")]
|
||||
public static bool PlayLogo()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(WarningMonitor), "IsLogoAnimationEnd")]
|
||||
public static bool IsLogoAnimationEnd(ref bool __result)
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user