diff options
author | TheKoopaKingdom <thekoopakingdom@gmail.com> | 2017-03-09 02:21:31 +0100 |
---|---|---|
committer | TheKoopaKingdom <thekoopakingdom@gmail.com> | 2017-06-03 00:28:14 +0200 |
commit | 37bec598ea28662462dcaab65d5abd6db8372dbc (patch) | |
tree | e1aa020f3884d601182155791d9c474df04fd133 /src/citra_qt | |
parent | Added system for handling core errors in citra-qt. (diff) | |
download | yuzu-37bec598ea28662462dcaab65d5abd6db8372dbc.tar yuzu-37bec598ea28662462dcaab65d5abd6db8372dbc.tar.gz yuzu-37bec598ea28662462dcaab65d5abd6db8372dbc.tar.bz2 yuzu-37bec598ea28662462dcaab65d5abd6db8372dbc.tar.lz yuzu-37bec598ea28662462dcaab65d5abd6db8372dbc.tar.xz yuzu-37bec598ea28662462dcaab65d5abd6db8372dbc.tar.zst yuzu-37bec598ea28662462dcaab65d5abd6db8372dbc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/bootmanager.cpp | 1 | ||||
-rw-r--r-- | src/citra_qt/main.cpp | 39 |
2 files changed, 22 insertions, 18 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 16661767f..0fdf0c600 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -40,7 +40,6 @@ void EmuThread::run() { Core::System::ResultStatus result = Core::System::GetInstance().RunLoop(); if (result != Core::System::ResultStatus::Success) { emit ErrorThrown(result); - break; } was_active = running || exec_step; diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index e24c48e90..cc38cfc0e 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -300,7 +300,7 @@ bool GMainWindow::LoadROM(const QString& filename) { render_window->MakeCurrent(); if (!gladLoadGL()) { - QMessageBox::critical(this, tr("Error while starting Citra!"), + QMessageBox::critical(this, tr("Error while initializing OpenGL 3.3 Core!"), tr("Your GPU may not support OpenGL 3.3, or you do not" "have the latest graphics driver.")); return false; @@ -329,7 +329,7 @@ bool GMainWindow::LoadROM(const QString& filename) { QMessageBox::critical( this, tr("Error while loading ROM!"), tr("The game that you are trying to load must be decrypted before being used with " - "Citra.<br/><br/>" + "Citra. A real 3DS is required.<br/><br/>" "For more information on dumping and decrypting games, please see the following " "wiki pages: <ul>" "<li><a href='https://citra-emu.org/wiki/Dumping-Game-Cartridges/'>Dumping Game " @@ -344,10 +344,17 @@ bool GMainWindow::LoadROM(const QString& filename) { tr("The ROM format is not supported.")); break; - case Core::System::ResultStatus::ErrorOpenGL: - QMessageBox::critical(this, tr("Error while loading OpenGL!"), - tr("Your GPU may not support OpenGL 3.3, or you do not " - "have the latest graphics driver.")); + case Core::System::ResultStatus::ErrorVideoCore: + QMessageBox::critical( + this, tr("An error occured in the video core."), + tr("Citra has encountered an error while running the video core, please see the " + "log for more details." + "For more information on accessing the log, please see the following page: " + "<a href='https://community.citra-emu.org/t/how-to-upload-the-log-file/296'>How " + "to " + "Upload the Log File</a>." + "Ensure that you have the latest graphics drivers for your GPU.")); + break; default: @@ -632,9 +639,6 @@ void GMainWindow::UpdateStatusBar() { } void GMainWindow::OnCoreError(Core::System::ResultStatus result) { - // Waiting for the dialog to be closed before shutting down causes a segfault, maybe because of - // the profiler - ShutdownGame(); switch (result) { case Core::System::ResultStatus::ErrorSystemFiles: QMessageBox::critical( @@ -664,13 +668,13 @@ void GMainWindow::OnCoreError(Core::System::ResultStatus result) { "."); break; - case Core::System::ResultStatus::ErrorUnknown: + default: QMessageBox::critical( this, "Fatal Error", - "Citra has encountered a fatal error, please see the log for more details."); - break; - - default: + "Citra has encountered a fatal error, please see the log for more details. " + "For more information on accessing the log, please see the following page: " + "<a href='https://community.citra-emu.org/t/how-to-upload-the-log-file/296'>How to " + "Upload the Log File</a>."); break; } } @@ -679,9 +683,10 @@ bool GMainWindow::ConfirmClose() { if (emu_thread == nullptr || !UISettings::values.confirm_before_closing) return true; - return QMessageBox::question(this, tr("Citra"), tr("Are you sure you want to close Citra?"), - QMessageBox::Yes | QMessageBox::No, - QMessageBox::No) != QMessageBox::No; + auto answer = + QMessageBox::question(this, tr("Citra"), tr("Are you sure you want to close Citra?"), + QMessageBox::Yes | QMessageBox::No, QMessageBox::No); + return answer != QMessageBox::No; } void GMainWindow::closeEvent(QCloseEvent* event) { |