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

Fix incorrect IL instructions (#17)

* Add new transpilers

* Cleanup

* Fix transpiler

* Fix incorrect code instruction

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
This commit is contained in:
Lacyway 2025-01-02 02:11:27 -08:00 committed by GitHub
parent f281f952b5
commit 6c9606f62f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,9 +29,9 @@ namespace SPT.SinglePlayer.Patches.Performance
List<CodeInstruction> codeList = instructions.ToList();
// These 3 lines remove BotUnityEditorRunChecker.ManualLateUpdate()
codeList[109] = new CodeInstruction(OpCodes.Nop);
codeList[108] = new CodeInstruction(OpCodes.Nop);
codeList[107].opcode = OpCodes.Nop;
codeList[112] = new CodeInstruction(OpCodes.Nop);
codeList[111] = new CodeInstruction(OpCodes.Nop);
codeList[110].opcode = OpCodes.Nop;
// These 4 remove the allocation of the Stopwatch and the Start() and Stop()
codeList[18] = new CodeInstruction(OpCodes.Nop);