上传文件至 Common
This commit is contained in:
22
Common/SkipFade.cs
Normal file
22
Common/SkipFade.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using HarmonyLib;
|
||||
|
||||
namespace SinmaiAssist.Common;
|
||||
|
||||
public class SkipFade
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(FadeProcess), "OnStart")]
|
||||
public static bool OnStart(FadeProcess __instance)
|
||||
{
|
||||
__instance.ProcessingProcess();
|
||||
return false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(FadeProcess), "StartFadeIn")]
|
||||
public static bool StartFadeIn(FadeProcess __instance)
|
||||
{
|
||||
__instance.ProcessingProcess();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user