mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 17:37:29 +08:00
[+] Make ForceAsServer and ForceFreePlay individual components
This commit is contained in:
23
AquaMai/Fix/ForceAsServer.cs
Normal file
23
AquaMai/Fix/ForceAsServer.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using AMDaemon;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace AquaMai.Fix;
|
||||
|
||||
public class ForceAsServer
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(LanInstall), "IsServer", MethodType.Getter)]
|
||||
private static bool PreIsServer(ref bool __result)
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(Network), "IsLanAvailable", MethodType.Getter)]
|
||||
private static bool PreIsLanAvailable(ref bool __result)
|
||||
{
|
||||
__result = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user