Browse Source

Implement Pull #3333 from citra: citra_qt: Pause emulation on CoreError (#39)

nce_cpp
N00byKing 8 years ago
committed by bunnei
parent
commit
b2228b3b2a
  1. 1
      src/yuzu/bootmanager.cpp
  2. 1
      src/yuzu/main.cpp

1
src/yuzu/bootmanager.cpp

@ -40,6 +40,7 @@ void EmuThread::run() {
Core::System::ResultStatus result = Core::System::GetInstance().RunLoop();
if (result != Core::System::ResultStatus::Success) {
this->SetRunning(false);
emit ErrorThrown(result, Core::System::GetInstance().GetStatusDetails());
}

1
src/yuzu/main.cpp

@ -726,6 +726,7 @@ void GMainWindow::OnCoreError(Core::System::ResultStatus result, std::string det
} else {
// Only show the message if the game is still running.
if (emu_thread) {
emu_thread->SetRunning(true);
message_label->setText(status_message);
message_label->setVisible(true);
}

Loading…
Cancel
Save