mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-12-11 20:15:10 +01:00
add some missing stuff from save patches
This commit is contained in:
parent
123ef506ca
commit
7623f37cc9
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user