Merge pull request #21153 from hrydgard/reset-fix

Make sure that resetting overrides auto load savestate
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-01-24 01:49:14 +01:00
commit bab01f1b16
2 files changed
+7 -1

No files matched your search

+6 -1
View File
@@ -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())) {
+1
View File
@@ -97,6 +97,7 @@ private:
UI::Event OnDevMenu;
UI::Event OnChatMenu;
bool bootPending_ = true;
bool bootIsReset_ = false;
Path gamePath_;
bool quit_ = false;