|
|
@ -1131,6 +1131,7 @@ void GMainWindow::OnAppFocusStateChanged(Qt::ApplicationState state) {
|
|
|
|
OnPauseGame();
|
|
|
|
OnPauseGame();
|
|
|
|
} else if (!emu_thread->IsRunning() && auto_paused && state == Qt::ApplicationActive) {
|
|
|
|
} else if (!emu_thread->IsRunning() && auto_paused && state == Qt::ApplicationActive) {
|
|
|
|
auto_paused = false;
|
|
|
|
auto_paused = false;
|
|
|
|
|
|
|
|
RequestGameResume();
|
|
|
|
OnStartGame();
|
|
|
|
OnStartGame();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2570,6 +2571,7 @@ void GMainWindow::OnPauseContinueGame() {
|
|
|
|
if (emu_thread->IsRunning()) {
|
|
|
|
if (emu_thread->IsRunning()) {
|
|
|
|
OnPauseGame();
|
|
|
|
OnPauseGame();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
RequestGameResume();
|
|
|
|
OnStartGame();
|
|
|
|
OnStartGame();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3749,6 +3751,21 @@ void GMainWindow::RequestGameExit() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::RequestGameResume() {
|
|
|
|
|
|
|
|
auto& sm{system->ServiceManager()};
|
|
|
|
|
|
|
|
auto applet_oe = sm.GetService<Service::AM::AppletOE>("appletOE");
|
|
|
|
|
|
|
|
auto applet_ae = sm.GetService<Service::AM::AppletAE>("appletAE");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (applet_oe != nullptr) {
|
|
|
|
|
|
|
|
applet_oe->GetMessageQueue()->RequestResume();
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (applet_ae != nullptr) {
|
|
|
|
|
|
|
|
applet_ae->GetMessageQueue()->RequestResume();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::filterBarSetChecked(bool state) {
|
|
|
|
void GMainWindow::filterBarSetChecked(bool state) {
|
|
|
|
ui->action_Show_Filter_Bar->setChecked(state);
|
|
|
|
ui->action_Show_Filter_Bar->setChecked(state);
|
|
|
|
emit(OnToggleFilterBar());
|
|
|
|
emit(OnToggleFilterBar());
|
|
|
|