diff --git a/AquaMai/AquaMai.csproj b/AquaMai/AquaMai.csproj
index d3ddf1d5..d5b1378f 100644
--- a/AquaMai/AquaMai.csproj
+++ b/AquaMai/AquaMai.csproj
@@ -284,6 +284,8 @@
+
+
diff --git a/AquaMai/AquaMai.toml b/AquaMai/AquaMai.toml
index ea66a25f..5fa2302f 100644
--- a/AquaMai/AquaMai.toml
+++ b/AquaMai/AquaMai.toml
@@ -55,3 +55,5 @@ ImproveLoadSpeed=true
# Allow login with higher data version
SkipVersionCheck=true
RemoveEncryption=true
+ForceAsServer=true
+ForceFreePlay=true
diff --git a/AquaMai/AquaMai.zh.toml b/AquaMai/AquaMai.zh.toml
index 2f73f4ae..67210bea 100644
--- a/AquaMai/AquaMai.zh.toml
+++ b/AquaMai/AquaMai.zh.toml
@@ -70,3 +70,6 @@ SkipVersionCheck=true
# 开了这个选项之后就不会加密连接了,同时也会移除不同版本的客户端可能会对 API 接口加的后缀
# 正常情况下,请保持这个选项开启
RemoveEncryption=true
+# 如果要配置店内招募的话,应该要把这个关闭
+ForceAsServer=true
+ForceFreePlay=true
diff --git a/AquaMai/Config.cs b/AquaMai/Config.cs
index 3a4c9605..a10a3cdd 100644
--- a/AquaMai/Config.cs
+++ b/AquaMai/Config.cs
@@ -46,6 +46,8 @@ namespace AquaMai
{
public bool SkipVersionCheck { get; set; }
public bool RemoveEncryption { get; set; }
+ public bool ForceAsServer { get; set; } = true;
+ public bool ForceFreePlay { get; set; } = true;
}
}
}
diff --git a/AquaMai/Fix/BasicFix.cs b/AquaMai/Fix/BasicFix.cs
index 6be76516..ca07cd10 100644
--- a/AquaMai/Fix/BasicFix.cs
+++ b/AquaMai/Fix/BasicFix.cs
@@ -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)
diff --git a/AquaMai/Fix/ForceAsServer.cs b/AquaMai/Fix/ForceAsServer.cs
new file mode 100644
index 00000000..71ddbc26
--- /dev/null
+++ b/AquaMai/Fix/ForceAsServer.cs
@@ -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;
+ }
+}
diff --git a/AquaMai/Fix/ForceFreePlay.cs b/AquaMai/Fix/ForceFreePlay.cs
new file mode 100644
index 00000000..430f7148
--- /dev/null
+++ b/AquaMai/Fix/ForceFreePlay.cs
@@ -0,0 +1,14 @@
+using HarmonyLib;
+
+namespace AquaMai.Fix;
+
+public class ForceFreePlay
+{
+ [HarmonyPrefix]
+ [HarmonyPatch(typeof(Manager.Credit), "IsFreePlay")]
+ private static bool PreIsFreePlay(ref bool __result)
+ {
+ __result = true;
+ return false;
+ }
+}