mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Merge pull request #21153 from hrydgard/reset-fix
Make sure that resetting overrides auto load savestate
This commit is contained in:
2 files changed
+7
-1
No files matched your search
+6
-1
@@ -376,7 +376,7 @@ void EmuScreen::bootComplete() {
|
||||
System_Notify(SystemNotification::DISASSEMBLY);
|
||||
|
||||
NOTICE_LOG(Log::Boot, "Booted %s...", PSP_CoreParameter().fileToStart.c_str());
|
||||
if (!Achievements::HardcoreModeActive()) {
|
||||
if (!Achievements::HardcoreModeActive() && !bootIsReset_) {
|
||||
// Don't auto-load savestates in hardcore mode.
|
||||
AutoLoadSaveState();
|
||||
}
|
||||
@@ -428,6 +428,8 @@ void EmuScreen::bootComplete() {
|
||||
|
||||
std::string gameID = g_paramSFO.GetValueString("DISC_ID");
|
||||
g_Config.TimeTracker().Start(gameID);
|
||||
|
||||
bootIsReset_ = false;
|
||||
}
|
||||
|
||||
EmuScreen::~EmuScreen() {
|
||||
@@ -548,6 +550,7 @@ void EmuScreen::sendMessage(UIMessage message, const char *value) {
|
||||
|
||||
// Restart the boot process
|
||||
bootPending_ = true;
|
||||
bootIsReset_ = true;
|
||||
RecreateViews();
|
||||
_dbg_assert_(coreState == CORE_POWERDOWN);
|
||||
if (!PSP_InitStart(PSP_CoreParameter())) {
|
||||
@@ -588,6 +591,7 @@ void EmuScreen::sendMessage(UIMessage message, const char *value) {
|
||||
screenManager()->cancelScreensAbove(this);
|
||||
|
||||
bootPending_ = true;
|
||||
bootIsReset_ = false;
|
||||
gamePath_ = newGamePath;
|
||||
}
|
||||
} else if (message == UIMessage::CONFIG_LOADED) {
|
||||
@@ -1776,6 +1780,7 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
|
||||
|
||||
// Restart the boot process
|
||||
bootPending_ = true;
|
||||
bootIsReset_ = true;
|
||||
RecreateViews();
|
||||
_dbg_assert_(coreState == CORE_POWERDOWN);
|
||||
if (!PSP_InitStart(PSP_CoreParameter())) {
|
||||
|
||||
@@ -97,6 +97,7 @@ private:
|
||||
UI::Event OnDevMenu;
|
||||
UI::Event OnChatMenu;
|
||||
bool bootPending_ = true;
|
||||
bool bootIsReset_ = false;
|
||||
Path gamePath_;
|
||||
|
||||
bool quit_ = false;
|
||||
|
||||
Reference in new issue
Block a user