上传文件至 Common
This commit is contained in:
22
Common/InfinityTimerLegacy.cs
Normal file
22
Common/InfinityTimerLegacy.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using HarmonyLib;
|
||||
|
||||
namespace SinmaiAssist.Common;
|
||||
|
||||
public class InfinityTimerLegacy
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(TimerController), "UpdateTimer")]
|
||||
public static bool UpdateTimer(ref float gameMsecAdd)
|
||||
{
|
||||
gameMsecAdd = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(GenericMonitor), "SetTimerSecond")]
|
||||
public static bool ForceInfinity(ref bool isInfinity)
|
||||
{
|
||||
isInfinity = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user