diff options
| author | 2018-01-16 17:32:27 +0100 | |
|---|---|---|
| committer | 2018-01-16 11:32:27 -0500 | |
| commit | 8b097aa17e598fa1d1075ea1e7512925ec423524 (patch) | |
| tree | 200868128f3e0d54e5bb32cee0eb62a9461f584b /src | |
| parent | Merge pull request #24 from nkatz565/nk-inputs (diff) | |
| download | yuzu-8b097aa17e598fa1d1075ea1e7512925ec423524.tar.gz yuzu-8b097aa17e598fa1d1075ea1e7512925ec423524.tar.xz yuzu-8b097aa17e598fa1d1075ea1e7512925ec423524.zip | |
Implement Pull #3333 from citra: citra_qt: Pause emulation on CoreError (#39)
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 1 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index a1e0cf575..843ac6ad7 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp | |||
| @@ -40,6 +40,7 @@ void EmuThread::run() { | |||
| 40 | 40 | ||
| 41 | Core::System::ResultStatus result = Core::System::GetInstance().RunLoop(); | 41 | Core::System::ResultStatus result = Core::System::GetInstance().RunLoop(); |
| 42 | if (result != Core::System::ResultStatus::Success) { | 42 | if (result != Core::System::ResultStatus::Success) { |
| 43 | this->SetRunning(false); | ||
| 43 | emit ErrorThrown(result, Core::System::GetInstance().GetStatusDetails()); | 44 | emit ErrorThrown(result, Core::System::GetInstance().GetStatusDetails()); |
| 44 | } | 45 | } |
| 45 | 46 | ||
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 51d7f9418..7c711158a 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -726,6 +726,7 @@ void GMainWindow::OnCoreError(Core::System::ResultStatus result, std::string det | |||
| 726 | } else { | 726 | } else { |
| 727 | // Only show the message if the game is still running. | 727 | // Only show the message if the game is still running. |
| 728 | if (emu_thread) { | 728 | if (emu_thread) { |
| 729 | emu_thread->SetRunning(true); | ||
| 729 | message_label->setText(status_message); | 730 | message_label->setText(status_message); |
| 730 | message_label->setVisible(true); | 731 | message_label->setVisible(true); |
| 731 | } | 732 | } |