上传文件至 Fix

This commit is contained in:
2025-10-13 18:19:13 +08:00
parent 80c8e81641
commit 1a75436303
12 changed files with 451 additions and 0 deletions

23
Fix/ForceAsServer.cs Normal file
View File

@@ -0,0 +1,23 @@
using AMDaemon;
using HarmonyLib;
namespace SinmaiAssist.Fix;
public class ForceAsServer
{
[HarmonyPrefix]
[HarmonyPatch(typeof(Network), "get_IsLanAvailable")]
private static bool IsLanAvailable(ref bool __result)
{
__result = false;
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(LanInstall), "get_IsServer")]
private static bool IsServer(ref bool __result)
{
__result = true;
return false;
}
}