0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00
modules/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs
CWX 2383a402e5 expirementing with using existing PVE logic
disabled PVE first time message
disabled insurance screen patch
disabled offlineraid screen patch
disabled raidsettingswindowpatch
2024-07-04 23:59:44 +01:00

26 lines
658 B
C#

using System.Reflection;
using HarmonyLib;
using SPT.Reflection.Patching;
namespace SPT.SinglePlayer.Patches.MainMenu
{
public class PVEModeWelcomeMessagePatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(GClass1849), nameof(GClass1849.GetBoolForProfile));
}
[PatchPrefix]
private static bool PatchPrefix(ref bool __result, string variable)
{
if (variable == "pve_first_time")
{
__result = true;
return false;
}
return true;
}
}
}