From 3bfffa9a3fab4b28e12b493444bf6e18d4590c27 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Fri, 27 Dec 2024 16:44:13 +0100 Subject: [PATCH] Fix patches --- Fika.Core/Coop/Patches/Overrides/ScavProfileLoad_Override.cs | 2 +- .../TransitControllerAbstractClass_Exist_Patch.cs | 2 +- Fika.Core/FikaPlugin.cs | 2 +- Fika.Core/UI/Patches/AchievementView_Show_Patch.cs | 2 +- ...uScreen_method_8_Patch.cs => MenuScreen_method_9_Patch.cs} | 4 ++-- Fika.Core/UI/Patches/SessionResultExitStatus_Show_Patch.cs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename Fika.Core/UI/Patches/MainMenuUI/{MenuScreen_method_8_Patch.cs => MenuScreen_method_9_Patch.cs} (89%) diff --git a/Fika.Core/Coop/Patches/Overrides/ScavProfileLoad_Override.cs b/Fika.Core/Coop/Patches/Overrides/ScavProfileLoad_Override.cs index ce79d756..3ff0ffaf 100644 --- a/Fika.Core/Coop/Patches/Overrides/ScavProfileLoad_Override.cs +++ b/Fika.Core/Coop/Patches/Overrides/ScavProfileLoad_Override.cs @@ -8,7 +8,7 @@ internal class ScavProfileLoad_Override : ModulePatch { protected override MethodBase GetTargetMethod() { - return typeof(TarkovApplication).GetMethod(nameof(TarkovApplication.method_49)); + return typeof(TarkovApplication).GetMethod(nameof(TarkovApplication.method_48)); } [PatchPrefix] diff --git a/Fika.Core/Coop/Patches/TransitController/TransitControllerAbstractClass_Exist_Patch.cs b/Fika.Core/Coop/Patches/TransitController/TransitControllerAbstractClass_Exist_Patch.cs index 5c33e1f7..16a1ee0d 100644 --- a/Fika.Core/Coop/Patches/TransitController/TransitControllerAbstractClass_Exist_Patch.cs +++ b/Fika.Core/Coop/Patches/TransitController/TransitControllerAbstractClass_Exist_Patch.cs @@ -10,7 +10,7 @@ public class TransitControllerAbstractClass_Exist_Patch : ModulePatch { protected override MethodBase GetTargetMethod() { - return typeof(TransitControllerAbstractClass).GetMethod(nameof(TransitControllerAbstractClass.Exist)).MakeGenericMethod(typeof(GClass1642)); + return typeof(TransitControllerAbstractClass).GetMethod(nameof(TransitControllerAbstractClass.Exist)).MakeGenericMethod(typeof(GClass1669)); } [PatchPrefix] diff --git a/Fika.Core/FikaPlugin.cs b/Fika.Core/FikaPlugin.cs index 14df04cb..4befe8cc 100644 --- a/Fika.Core/FikaPlugin.cs +++ b/Fika.Core/FikaPlugin.cs @@ -333,7 +333,7 @@ private static void EnableFikaPatches() new PlayEndGameSound_Patch().Enable(); new MenuScreen_Awake_Patch().Enable(); new GClass3574_ShowAction_Patch().Enable(); - new MenuScreen_method_8_Patch().Enable(); + new MenuScreen_method_9_Patch().Enable(); new HideoutPlayerOwner_SetPointOfView_Patch().Enable(); new RagfairScreen_Show_Patch().Enable(); new MatchmakerPlayerControllerClass_GetCoopBlockReason_Patch().Enable(); diff --git a/Fika.Core/UI/Patches/AchievementView_Show_Patch.cs b/Fika.Core/UI/Patches/AchievementView_Show_Patch.cs index 344f8337..08bcf2a0 100644 --- a/Fika.Core/UI/Patches/AchievementView_Show_Patch.cs +++ b/Fika.Core/UI/Patches/AchievementView_Show_Patch.cs @@ -12,7 +12,7 @@ public class AchievementView_Show_Patch : ModulePatch { protected override MethodBase GetTargetMethod() { - return typeof(AchievementView).GetMethod("GInterface466.Show"); + return typeof(AchievementView).GetMethod("GInterface479.Show"); } [PatchPostfix] diff --git a/Fika.Core/UI/Patches/MainMenuUI/MenuScreen_method_8_Patch.cs b/Fika.Core/UI/Patches/MainMenuUI/MenuScreen_method_9_Patch.cs similarity index 89% rename from Fika.Core/UI/Patches/MainMenuUI/MenuScreen_method_8_Patch.cs rename to Fika.Core/UI/Patches/MainMenuUI/MenuScreen_method_9_Patch.cs index 9d0c9f21..98658982 100644 --- a/Fika.Core/UI/Patches/MainMenuUI/MenuScreen_method_8_Patch.cs +++ b/Fika.Core/UI/Patches/MainMenuUI/MenuScreen_method_9_Patch.cs @@ -5,11 +5,11 @@ namespace Fika.Core.UI.Patches { - public class MenuScreen_method_8_Patch : ModulePatch + public class MenuScreen_method_9_Patch : ModulePatch { protected override MethodBase GetTargetMethod() { - return typeof(MenuScreen).GetMethod(nameof(MenuScreen.method_8)); + return typeof(MenuScreen).GetMethod(nameof(MenuScreen.method_9)); } [PatchPostfix] diff --git a/Fika.Core/UI/Patches/SessionResultExitStatus_Show_Patch.cs b/Fika.Core/UI/Patches/SessionResultExitStatus_Show_Patch.cs index dd8f97bc..0d99b1a8 100644 --- a/Fika.Core/UI/Patches/SessionResultExitStatus_Show_Patch.cs +++ b/Fika.Core/UI/Patches/SessionResultExitStatus_Show_Patch.cs @@ -13,7 +13,7 @@ public class SessionResultExitStatus_Show_Patch : ModulePatch protected override MethodBase GetTargetMethod() { return typeof(SessionResultExitStatus).GetMethod(nameof(SessionResultExitStatus.Show), [typeof(Profile), - typeof(GClass1917), + typeof(GClass1945), typeof(ESideType), typeof(ExitStatus), typeof(TimeSpan),