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.
This commit is contained in:
Unknown W. Brackets 2016-08-16 21:24:01 -07:00
parent e4b0f295b2
commit a3efa99cd4

View File

@ -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;