mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 15:17:26 +08:00
[+] Make ForceAsServer and ForceFreePlay individual components
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user