early-access version 3947
This commit is contained in:
parent
1b803d3836
commit
224c0420e6
2 changed files with 16 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
yuzu emulator early access
|
||||
=============
|
||||
|
||||
This is the source code for early-access 3946.
|
||||
This is the source code for early-access 3947.
|
||||
|
||||
## Legal Notice
|
||||
|
||||
|
|
|
@ -3440,31 +3440,35 @@ void GMainWindow::OnStopGame() {
|
|||
play_time_manager->Stop();
|
||||
// Update game list to show new play time
|
||||
game_list->PopulateAsync(UISettings::values.game_dirs);
|
||||
if (OnShutdownBegin()) {
|
||||
OnShutdownBeginDialog();
|
||||
} else {
|
||||
OnEmulationStopped();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool GMainWindow::ConfirmShutdownGame() {
|
||||
bool showDialog = false;
|
||||
if (UISettings::values.confirm_before_stopping.GetValue() == ConfirmStop::Ask_Always) {
|
||||
if (system->GetExitLocked()) {
|
||||
showDialog = ConfirmForceLockedExit();
|
||||
if (!ConfirmForceLockedExit()) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
showDialog = ConfirmChangeGame();
|
||||
if (!ConfirmChangeGame()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (UISettings::values.confirm_before_stopping.GetValue() ==
|
||||
ConfirmStop::Ask_Based_On_Game &&
|
||||
system->GetExitLocked()) {
|
||||
showDialog = ConfirmForceLockedExit();
|
||||
if (!ConfirmForceLockedExit()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (showDialog && OnShutdownBegin()) {
|
||||
OnShutdownBeginDialog();
|
||||
}
|
||||
|
||||
return showDialog;
|
||||
return true;
|
||||
}
|
||||
|
||||
void GMainWindow::OnLoadComplete() {
|
||||
|
|
Loading…
Reference in a new issue