From f281f952b511ddd5c1652b29120b5af8224fbb5a Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 1 Jan 2025 09:29:32 +0000 Subject: [PATCH] Renamed patchess to fit in with naming scheme --- ...ler.cs => RemoveStopwatchAllocationsEveryBotFramePatch.cs} | 2 +- ...=> RemoveStopwatchAllocationsEveryCoverPointFramePatch.cs} | 4 ++-- project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename project/SPT.SinglePlayer/Patches/Performance/{BotOwner_ManualUpdate_Transpiler.cs => RemoveStopwatchAllocationsEveryBotFramePatch.cs} (95%) rename project/SPT.SinglePlayer/Patches/Performance/{CoverPointMaster_method_0_Transpiler.cs => RemoveStopwatchAllocationsEveryCoverPointFramePatch.cs} (88%) diff --git a/project/SPT.SinglePlayer/Patches/Performance/BotOwner_ManualUpdate_Transpiler.cs b/project/SPT.SinglePlayer/Patches/Performance/RemoveStopwatchAllocationsEveryBotFramePatch.cs similarity index 95% rename from project/SPT.SinglePlayer/Patches/Performance/BotOwner_ManualUpdate_Transpiler.cs rename to project/SPT.SinglePlayer/Patches/Performance/RemoveStopwatchAllocationsEveryBotFramePatch.cs index 2c36633..a135dba 100644 --- a/project/SPT.SinglePlayer/Patches/Performance/BotOwner_ManualUpdate_Transpiler.cs +++ b/project/SPT.SinglePlayer/Patches/Performance/RemoveStopwatchAllocationsEveryBotFramePatch.cs @@ -16,7 +16,7 @@ namespace SPT.SinglePlayer.Patches.Performance /// - and
/// - Unnecessary run of /// - public class BotOwner_ManualUpdate_Transpiler : ModulePatch + public class RemoveStopwatchAllocationsEveryBotFramePatch : ModulePatch { protected override MethodBase GetTargetMethod() { diff --git a/project/SPT.SinglePlayer/Patches/Performance/CoverPointMaster_method_0_Transpiler.cs b/project/SPT.SinglePlayer/Patches/Performance/RemoveStopwatchAllocationsEveryCoverPointFramePatch.cs similarity index 88% rename from project/SPT.SinglePlayer/Patches/Performance/CoverPointMaster_method_0_Transpiler.cs rename to project/SPT.SinglePlayer/Patches/Performance/RemoveStopwatchAllocationsEveryCoverPointFramePatch.cs index 6c031ff..c4b35d3 100644 --- a/project/SPT.SinglePlayer/Patches/Performance/CoverPointMaster_method_0_Transpiler.cs +++ b/project/SPT.SinglePlayer/Patches/Performance/RemoveStopwatchAllocationsEveryCoverPointFramePatch.cs @@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.Performance /// - New allocation of
/// - and
/// - internal class CoverPointMaster_method_0_Transpiler : ModulePatch + public class RemoveStopwatchAllocationsEveryCoverPointFramePatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -27,7 +27,7 @@ namespace SPT.SinglePlayer.Patches.Performance // This is the line that stops the Stopwatch codeList[69].opcode = OpCodes.Nop; - // These lines stops the allocation and Start() of the Stopwatch + // These lines stop the allocation and Start() of the Stopwatch codeList[12].opcode = OpCodes.Nop; codeList[11].opcode = OpCodes.Nop; codeList[10].opcode = OpCodes.Nop; diff --git a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs index 3bcab8f..12a99b6 100644 --- a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs +++ b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs @@ -69,8 +69,8 @@ namespace SPT.SinglePlayer // 4.0.0 new ScavPrestigeFixPatch().Enable(); new DisableDevMaskCheckPatch().Enable(); - new BotOwner_ManualUpdate_Transpiler().Enable(); - new CoverPointMaster_method_0_Transpiler().Enable(); + new RemoveStopwatchAllocationsEveryBotFramePatch().Enable(); + new RemoveStopwatchAllocationsEveryCoverPointFramePatch().Enable(); } catch (Exception ex) {