early-access version 3251
This commit is contained in:
parent
76af94908f
commit
eb371309f1
@ -1,7 +1,7 @@
|
|||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 3247.
|
This is the source code for early-access 3251.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
@ -1784,9 +1784,9 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
|
|||||||
OnStartGame();
|
OnStartGame();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnShutdownBegin() {
|
bool GMainWindow::OnShutdownBegin() {
|
||||||
if (!emulation_running) {
|
if (!emulation_running) {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ui->action_Fullscreen->isChecked()) {
|
if (ui->action_Fullscreen->isChecked()) {
|
||||||
@ -1798,6 +1798,10 @@ void GMainWindow::OnShutdownBegin() {
|
|||||||
// Disable unlimited frame rate
|
// Disable unlimited frame rate
|
||||||
Settings::values.use_speed_limit.SetValue(true);
|
Settings::values.use_speed_limit.SetValue(true);
|
||||||
|
|
||||||
|
if (system->IsShuttingDown()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
system->SetShuttingDown(true);
|
system->SetShuttingDown(true);
|
||||||
discord_rpc->Pause();
|
discord_rpc->Pause();
|
||||||
|
|
||||||
@ -1816,6 +1820,8 @@ void GMainWindow::OnShutdownBegin() {
|
|||||||
ui->action_Pause->setEnabled(false);
|
ui->action_Pause->setEnabled(false);
|
||||||
ui->action_Restart->setEnabled(false);
|
ui->action_Restart->setEnabled(false);
|
||||||
ui->action_Stop->setEnabled(false);
|
ui->action_Stop->setEnabled(false);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnShutdownBeginDialog() {
|
void GMainWindow::OnShutdownBeginDialog() {
|
||||||
@ -3002,8 +3008,9 @@ void GMainWindow::OnStopGame() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OnShutdownBegin();
|
if (OnShutdownBegin()) {
|
||||||
OnShutdownBeginDialog();
|
OnShutdownBeginDialog();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnLoadComplete() {
|
void GMainWindow::OnLoadComplete() {
|
||||||
|
@ -336,7 +336,7 @@ private slots:
|
|||||||
void OnReinitializeKeys(ReinitializeKeyBehavior behavior);
|
void OnReinitializeKeys(ReinitializeKeyBehavior behavior);
|
||||||
void OnLanguageChanged(const QString& locale);
|
void OnLanguageChanged(const QString& locale);
|
||||||
void OnMouseActivity();
|
void OnMouseActivity();
|
||||||
void OnShutdownBegin();
|
bool OnShutdownBegin();
|
||||||
void OnShutdownBeginDialog();
|
void OnShutdownBeginDialog();
|
||||||
void OnEmulationStopped();
|
void OnEmulationStopped();
|
||||||
void OnEmulationStopTimeExpired();
|
void OnEmulationStopTimeExpired();
|
||||||
|
Loading…
Reference in New Issue
Block a user