style(loader): file-scoped namespace + silence Harmony003 false positive

This commit is contained in:
gamer147
2026-06-03 09:17:37 -04:00
parent 800e40344b
commit 620ae31582

View File

@@ -1,8 +1,8 @@
using Cute;
using HarmonyLib;
namespace SVSimLoader.Patches
{
namespace SVSimLoader.Patches;
[HarmonyPatch]
public static class MultiInstancePatches
{
@@ -54,7 +54,8 @@ namespace SVSimLoader.Patches
public static bool SetInt(string key, int value)
{
if (!SvSimConfig.SecondaryInstance || !IsIdentityKey(key)) return true;
InstanceIdentityStore.Set(key, value.ToString());
int v = value;
InstanceIdentityStore.Set(key, v.ToString());
return false;
}
@@ -71,4 +72,3 @@ namespace SVSimLoader.Patches
$"Multi-instance: forced SteamID={SvSimConfig.FakeSteamId}, ticket={SvSimConfig.FakeTicket}.");
}
}
}