0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 05:50:44 -05:00

Renamed patchess to fit in with naming scheme

This commit is contained in:
Chomp 2025-01-01 09:29:32 +00:00
parent 8260ad4d6e
commit f281f952b5
3 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ namespace SPT.SinglePlayer.Patches.Performance
/// - <see cref="Stopwatch.Start"/> and <see cref="Stopwatch.Stop"/> <br/>
/// - Unnecessary run of <see cref="BotUnityEditorRunChecker.ManualLateUpdate"/>
/// </summary>
public class BotOwner_ManualUpdate_Transpiler : ModulePatch
public class RemoveStopwatchAllocationsEveryBotFramePatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{

View File

@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.Performance
/// - New allocation of <see cref="Stopwatch"/> <br/>
/// - <see cref="Stopwatch.Start"/> and <see cref="Stopwatch.Stop"/> <br/>
/// </summary>
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;

View File

@ -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)
{