From a3efa99cd4294340c5945f5ab4fc2cf23868ee2c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 16 Aug 2016 21:24:01 -0700 Subject: [PATCH] UI: Suppress state slot switch preview during boot. Boot may change the slot if the game has game-specific settings, but we shouldn't show the preview. Should fix #8916. --- UI/EmuScreen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index fdf78a3d5d..3e2bcc1a2b 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -202,6 +202,8 @@ void EmuScreen::bootComplete() { } System_SendMessage("event", "startgame"); + + saveStateSlot_ = SaveState::GetCurrentSlot(); } EmuScreen::~EmuScreen() { @@ -804,7 +806,7 @@ void EmuScreen::update(InputState &input) { screenManager()->push(new GamePauseScreen(gamePath_)); } - if (saveStatePreview_) { + if (saveStatePreview_ && !bootPending_) { int currentSlot = SaveState::GetCurrentSlot(); if (saveStateSlot_ != currentSlot) { saveStateSlot_ = currentSlot;