add some missing stuff from save patches

This commit is contained in:
_nebula 2025-11-18 22:10:51 +00:00
parent 123ef506ca
commit 7623f37cc9
2 changed files with 9 additions and 0 deletions

View File

@ -13,7 +13,13 @@ public class PlayerDataPatches : QSBPatch
[HarmonyPatch(nameof(PlayerData.ResetGame))]
public static bool ResetGame()
{
var flag = false;
if (PlayerData._currentGameSave != null)
{
flag = PlayerData._currentGameSave.didRunInitGammaSetting;
}
PlayerData._currentGameSave = new GameSave();
PlayerData._currentGameSave.didRunInitGammaSetting = flag;
QSBCore.ProfileManager.SaveGame(PlayerData._currentGameSave, null, null, null);
return false;
}

View File

@ -13,6 +13,7 @@ public class TitleScreenManagerPatchesCommon : QSBPatch
public static bool Awake(TitleScreenManager __instance)
{
__instance._profileManager = QSBCore.ProfileManager;
__instance._titleCodeManager.enabled = true;
__instance._profileManager.PreInitialize();
LoadManager.OnStartSceneLoad += __instance.OnStartSceneLoad;
LoadManager.OnCompleteSceneLoad += __instance.OnCompleteSceneLoad;
@ -20,6 +21,8 @@ public class TitleScreenManagerPatchesCommon : QSBPatch
MenuStackManager.SharedInstance.OnMenuPop += __instance.OnMenuPop;
__instance._resumeGameTextSetter = __instance._resumeGameObject.GetComponentInChildren<ResumeGameLocalizedText>();
__instance.InitializePopupPrompts();
__instance._disconnectedGameObject.SetActive(false);
__instance._allowDisconnectedMessage = false;
return false;
}