summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-09-22 10:40:33 +0200
committerwwylele <wwylele@gmail.com>2016-09-22 10:40:33 +0200
commit3aa047cd1d2b1fa4be28b3352065cb183eed635c (patch)
tree7dbc0d9a2d088ad6433d8cfd420cf9a77696f658 /src/citra_qt
parentMerge pull request #2099 from citra-emu/fix-clang-format (diff)
downloadyuzu-3aa047cd1d2b1fa4be28b3352065cb183eed635c.tar
yuzu-3aa047cd1d2b1fa4be28b3352065cb183eed635c.tar.gz
yuzu-3aa047cd1d2b1fa4be28b3352065cb183eed635c.tar.bz2
yuzu-3aa047cd1d2b1fa4be28b3352065cb183eed635c.tar.lz
yuzu-3aa047cd1d2b1fa4be28b3352065cb183eed635c.tar.xz
yuzu-3aa047cd1d2b1fa4be28b3352065cb183eed635c.tar.zst
yuzu-3aa047cd1d2b1fa4be28b3352065cb183eed635c.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index 82667446b..0c7bedfcf 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -286,7 +286,6 @@ bool GMainWindow::LoadROM(const std::string& filename) {
Loader::ResultStatus result = app_loader->Load();
if (Loader::ResultStatus::Success != result) {
LOG_CRITICAL(Frontend, "Failed to load ROM!");
- System::Shutdown();
switch (result) {
case Loader::ResultStatus::ErrorEncrypted: {
@@ -326,8 +325,10 @@ void GMainWindow::BootGame(const std::string& filename) {
if (!InitializeSystem())
return;
- if (!LoadROM(filename))
+ if (!LoadROM(filename)) {
+ System::Shutdown();
return;
+ }
// Create and start the emulation thread
emu_thread = std::make_unique<EmuThread>(render_window);