mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:10:44 -05:00
Renamed patchess to fit in with naming scheme
This commit is contained in:
parent
8260ad4d6e
commit
f281f952b5
@ -16,7 +16,7 @@ namespace SPT.SinglePlayer.Patches.Performance
|
|||||||
/// - <see cref="Stopwatch.Start"/> and <see cref="Stopwatch.Stop"/> <br/>
|
/// - <see cref="Stopwatch.Start"/> and <see cref="Stopwatch.Stop"/> <br/>
|
||||||
/// - Unnecessary run of <see cref="BotUnityEditorRunChecker.ManualLateUpdate"/>
|
/// - Unnecessary run of <see cref="BotUnityEditorRunChecker.ManualLateUpdate"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class BotOwner_ManualUpdate_Transpiler : ModulePatch
|
public class RemoveStopwatchAllocationsEveryBotFramePatch : ModulePatch
|
||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.Performance
|
|||||||
/// - New allocation of <see cref="Stopwatch"/> <br/>
|
/// - New allocation of <see cref="Stopwatch"/> <br/>
|
||||||
/// - <see cref="Stopwatch.Start"/> and <see cref="Stopwatch.Stop"/> <br/>
|
/// - <see cref="Stopwatch.Start"/> and <see cref="Stopwatch.Stop"/> <br/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class CoverPointMaster_method_0_Transpiler : ModulePatch
|
public class RemoveStopwatchAllocationsEveryCoverPointFramePatch : ModulePatch
|
||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ namespace SPT.SinglePlayer.Patches.Performance
|
|||||||
// This is the line that stops the Stopwatch
|
// This is the line that stops the Stopwatch
|
||||||
codeList[69].opcode = OpCodes.Nop;
|
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[12].opcode = OpCodes.Nop;
|
||||||
codeList[11].opcode = OpCodes.Nop;
|
codeList[11].opcode = OpCodes.Nop;
|
||||||
codeList[10].opcode = OpCodes.Nop;
|
codeList[10].opcode = OpCodes.Nop;
|
@ -69,8 +69,8 @@ namespace SPT.SinglePlayer
|
|||||||
// 4.0.0
|
// 4.0.0
|
||||||
new ScavPrestigeFixPatch().Enable();
|
new ScavPrestigeFixPatch().Enable();
|
||||||
new DisableDevMaskCheckPatch().Enable();
|
new DisableDevMaskCheckPatch().Enable();
|
||||||
new BotOwner_ManualUpdate_Transpiler().Enable();
|
new RemoveStopwatchAllocationsEveryBotFramePatch().Enable();
|
||||||
new CoverPointMaster_method_0_Transpiler().Enable();
|
new RemoveStopwatchAllocationsEveryCoverPointFramePatch().Enable();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user