style(loader): file-scoped namespace + silence Harmony003 false positive
This commit is contained in:
@@ -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}.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user