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

removed unused patch

This commit is contained in:
CWX 2024-08-02 18:01:43 +01:00
parent 99184be313
commit 363d9804a1
2 changed files with 0 additions and 34 deletions

View File

@ -1,33 +0,0 @@
using EFT;
using EFT.UI;
using EFT.UI.Matchmaker;
using HarmonyLib;
using SPT.Reflection.Patching;
using System.Reflection;
namespace SPT.SinglePlayer.Patches.MainMenu
{
public class ApplyRaidSettingsPatch : ModulePatch
{
/// <summary>
/// Since Scav is never meant to have the RaidSettingsWindow If you choose scav first and modify options then go to PMC you will remain Scav until you restart the game (Same other way around).
/// This Patch Basically overwrites the original settings so they dont get set back original settings from scav page
/// </summary>
/// <returns></returns>
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(RaidSettingsWindow), nameof(RaidSettingsWindow.RestoreOriginalOfflineSettings));
}
[PatchPrefix]
public static void PatchPrefix(ref RaidSettings ___raidSettings_0, ref RaidSettings ___raidSettings_1)
{
// If Raidsettingswindow is never opened it will soft lock game
if (___raidSettings_0 == null)
{
return;
}
___raidSettings_1.Apply(___raidSettings_0);
}
}
}

View File

@ -60,7 +60,6 @@ namespace SPT.SinglePlayer
new GetProfileAtEndOfRaidPatch().Enable();
new FixSavageInventoryScreenPatch().Enable();
new InsuranceScreenPatch().Enable();
// new ApplyRaidSettingsPatch().Enable(); Should be no longer needed keeping here just to be safe.
new FixQuestAchieveControllersPatch().Enable();
}
catch (Exception ex)