From 2abc1ab0ce7e6c8e7fe2365cae2321df2ccfa4bc Mon Sep 17 00:00:00 2001 From: BluBb_mADe Date: Sat, 27 Apr 2024 09:38:27 +0000 Subject: [PATCH] fixed insurance screen patch (!114) I am not entirely sure what the method name index of the added method is that has offset everything by one. There might be other patches affected by this that reference a method by name instead of signature but everything seems to work with just these two adjustments. I don't have a diff ready to easily spot where the offset happens and what else might potentially be affected. Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Modules/pulls/114 Co-authored-by: BluBb_mADe Co-committed-by: BluBb_mADe --- .../Aki.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs | 2 +- .../Patches/ScavMode/LoadOfflineRaidScreenPatch.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/Aki.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs b/project/Aki.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs index 7486144..6ec4bca 100644 --- a/project/Aki.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs +++ b/project/Aki.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs @@ -32,7 +32,7 @@ namespace Aki.SinglePlayer.Patches.MainMenu // this.method_41(); //} - return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_72)); + return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_73)); } [PatchPrefix] diff --git a/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs b/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs index ec0eb52..6d4b8d1 100644 --- a/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs +++ b/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs @@ -46,7 +46,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode protected override MethodBase GetTargetMethod() { // `MatchMakerSelectionLocationScreen` OnShowNextScreen - return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_70)); + return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_71)); } [PatchTranspiler]