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:
parent
e4b0f295b2
commit
a3efa99cd4
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue