diff --git a/Fika.Headless/FikaHeadlessPlugin.cs b/Fika.Headless/FikaHeadlessPlugin.cs index e7b86f0..7c531e2 100644 --- a/Fika.Headless/FikaHeadlessPlugin.cs +++ b/Fika.Headless/FikaHeadlessPlugin.cs @@ -110,8 +110,6 @@ protected void Awake() new MainMenuController_method_74_Patch().Enable(); new LocaleManagerClass_String_0_Patch().Enable(); new TarkovApplication_method_39_Patch().Enable(); - // TODO: Fix - //new LocalePatches().Enable(); if (!ShouldBotsSleep.Value) { diff --git a/Fika.Headless/Patches/LocalePatches.cs b/Fika.Headless/Patches/LocalePatches.cs deleted file mode 100644 index 6709711..0000000 --- a/Fika.Headless/Patches/LocalePatches.cs +++ /dev/null @@ -1,57 +0,0 @@ -using HarmonyLib; -using SPT.Reflection.Patching; -using System.Collections.Generic; -using System.Reflection; -using System.Reflection.Emit; - -namespace Fika.Headless.Patches -{ - internal class LocalePatches - { - public void Enable() - { - new LocaleManagerClass_UpdateMainMenuLocales_Patch().Enable(); - new LocaleManagerClass_UpdateLocales_Patch().Enable(); - } - } - - internal class LocaleManagerClass_UpdateMainMenuLocales_Patch : ModulePatch - { - protected override MethodBase GetTargetMethod() - { - return typeof(LocaleManagerClass).GetMethod(nameof(LocaleManagerClass.UpdateMainMenuLocales)); - } - - [PatchTranspiler] - public static IEnumerable Transpile(IEnumerable instructions) - { - // Create a new set of instructions - List instructionsList = - [ - new CodeInstruction(OpCodes.Ret) // Return immediately - ]; - - return instructionsList; - } - } - - internal class LocaleManagerClass_UpdateLocales_Patch : ModulePatch - { - protected override MethodBase GetTargetMethod() - { - return typeof(LocaleManagerClass).GetMethod(nameof(LocaleManagerClass.UpdateLocales)); - } - - [PatchTranspiler] - public static IEnumerable Transpile(IEnumerable instructions) - { - // Create a new set of instructions - List instructionsList = - [ - new CodeInstruction(OpCodes.Ret) // Return immediately - ]; - - return instructionsList; - } - } -}