Files
Sinmai-Assist/Fix/ForceAsServer.cs
2025-10-13 18:19:13 +08:00

23 lines
484 B
C#

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;
}
}