mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 08:30:45 -05:00
temp fix notifications and dump patch
This commit is contained in:
parent
b41b453207
commit
3d0d5db8e6
@ -105,7 +105,7 @@ namespace SPT.Custom.Utils
|
|||||||
{
|
{
|
||||||
if (Singleton<PreloaderUI>.Instantiated && ShouldShowBetaMessage())
|
if (Singleton<PreloaderUI>.Instantiated && ShouldShowBetaMessage())
|
||||||
{
|
{
|
||||||
Singleton<PreloaderUI>.Instance.ShowCriticalErrorScreen(sptVersion, release.betaDisclaimerText, ErrorScreen.EButtonType.OkButton, release.betaDisclaimerTimeoutDelay, new Action(OnMessageAccepted), new Action(OnTimeOut));
|
Singleton<PreloaderUI>.Instance.ShowCriticalErrorScreen(sptVersion, release.betaDisclaimerText, ErrorScreen.EButtonType.OkButton, release.betaDisclaimerTimeoutDelay);
|
||||||
_isBetaDisclaimerOpen = true;
|
_isBetaDisclaimerOpen = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ namespace SPT.Custom.Utils
|
|||||||
{
|
{
|
||||||
if (Singleton<PreloaderUI>.Instantiated && ShouldShowReleaseNotes())
|
if (Singleton<PreloaderUI>.Instantiated && ShouldShowReleaseNotes())
|
||||||
{
|
{
|
||||||
Singleton<PreloaderUI>.Instance.ShowCriticalErrorScreen(sptVersion, release.releaseSummaryText, ErrorScreen.EButtonType.OkButton, 36000, null, null);
|
Singleton<PreloaderUI>.Instance.ShowCriticalErrorScreen(sptVersion, release.releaseSummaryText, ErrorScreen.EButtonType.OkButton, 36000);
|
||||||
PlayerPrefs.SetInt("SPT_ShownReleaseNotes", 1);
|
PlayerPrefs.SetInt("SPT_ShownReleaseNotes", 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,21 +31,21 @@ public class DumpyLibPatch : ModulePatch
|
|||||||
|
|
||||||
public class DumplyLibMono : MonoBehaviour
|
public class DumplyLibMono : MonoBehaviour
|
||||||
{
|
{
|
||||||
public Class301 _session;
|
public Class304 _session;
|
||||||
public TarkovApplication _tarkovApplication;
|
public TarkovApplication _tarkovApplication;
|
||||||
public FieldInfo _mainMenuController;
|
public FieldInfo _mainMenuController;
|
||||||
public WaveInfo _wavesSettings;
|
public WaveInfo _wavesSettings;
|
||||||
public LocalRaidSettings _localRaidSettings;
|
public LocalRaidSettings _localRaidSettings;
|
||||||
public RaidSettings _raidSettings;
|
public RaidSettings _raidSettings;
|
||||||
public LocationSettingsClass _locationSettings;
|
public LocationSettingsClass _locationSettings;
|
||||||
public GClass1924 _endRaidClass;
|
public GClass1952 _endRaidClass;
|
||||||
public GClass1962 _completeProfile;
|
public GClass1991 _completeProfile;
|
||||||
public GClass814 _parsedDataProfile;
|
public GClass822 _parsedDataProfile;
|
||||||
// Class references are as of assembly 33420 - 02/11/2024
|
// Class references are as of assembly 33420 - 26/12/2024
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
_session = ClientAppUtils.GetClientApp().Session as Class301;
|
_session = ClientAppUtils.GetClientApp().Session as Class304;
|
||||||
_tarkovApplication = ClientAppUtils.GetMainApp();
|
_tarkovApplication = ClientAppUtils.GetMainApp();
|
||||||
_mainMenuController = _tarkovApplication.GetType().GetField("mainMenuController"); // is null at this point so only get fieldinfo - TODO: fieldinfo came back as null
|
_mainMenuController = _tarkovApplication.GetType().GetField("mainMenuController"); // is null at this point so only get fieldinfo - TODO: fieldinfo came back as null
|
||||||
_wavesSettings = new WaveInfo(2, WildSpawnType.assault, BotDifficulty.normal); // imitate loading json of wave settings
|
_wavesSettings = new WaveInfo(2, WildSpawnType.assault, BotDifficulty.normal); // imitate loading json of wave settings
|
||||||
@ -91,7 +91,7 @@ public class DumplyLibMono : MonoBehaviour
|
|||||||
PlayersSpawnPlace = EPlayersSpawnPlace.SamePlace
|
PlayersSpawnPlace = EPlayersSpawnPlace.SamePlace
|
||||||
};
|
};
|
||||||
_locationSettings = _session.LocationSettings;
|
_locationSettings = _session.LocationSettings;
|
||||||
_endRaidClass = new GClass1924
|
_endRaidClass = new GClass1952
|
||||||
{
|
{
|
||||||
profile = null,
|
profile = null,
|
||||||
result = ExitStatus.Left,
|
result = ExitStatus.Left,
|
||||||
@ -101,10 +101,10 @@ public class DumplyLibMono : MonoBehaviour
|
|||||||
inSession = true,
|
inSession = true,
|
||||||
favorite = false,
|
favorite = false,
|
||||||
playTime = 33,
|
playTime = 33,
|
||||||
InsuredItems = new GClass1308[] {},
|
InsuredItems = new GClass1321[] {},
|
||||||
ProfileId = ""
|
ProfileId = ""
|
||||||
};
|
};
|
||||||
_completeProfile = new GClass1962(_session.Profile, GClass1971.Instance);
|
_completeProfile = new GClass1991(_session.Profile, GClass2000.Instance);
|
||||||
|
|
||||||
_parsedDataProfile = _completeProfile.ToUnparsedData();
|
_parsedDataProfile = _completeProfile.ToUnparsedData();
|
||||||
_endRaidClass.profile = _completeProfile.ToUnparsedData();
|
_endRaidClass.profile = _completeProfile.ToUnparsedData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user