[+] Make ForceAsServer and ForceFreePlay individual components

This commit is contained in:
Clansty
2024-08-22 20:17:26 +08:00
parent ffe3843747
commit d58fe84439
7 changed files with 47 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
using AMDaemon;
using AMDaemon.Allnet;
using AMDaemon.Allnet;
using HarmonyLib;
using Manager;
using Manager.Operation;
@@ -17,22 +16,6 @@ public class BasicFix
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(LanInstall), "IsServer", MethodType.Getter)]
private static bool PreIsServer(ref bool __result)
{
__result = true;
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(AMDaemon.Network), "IsLanAvailable", MethodType.Getter)]
private static bool PreIsLanAvailable(ref bool __result)
{
__result = false;
return false;
}
[HarmonyPostfix]
[HarmonyPatch(typeof(OperationManager), "CheckAuth_Proc")]
private static void PostCheckAuthProc(ref OperationData ____operationData)
@@ -43,14 +26,6 @@ public class BasicFix
}
}
[HarmonyPrefix]
[HarmonyPatch(typeof(Manager.Credit), "IsFreePlay")]
private static bool PreIsFreePlay(ref bool __result)
{
__result = true;
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(DebugInput), "GetKey")]
private static bool GetKey(ref bool __result, KeyCode name)