diff options
author | Lioncash <mathew1800@gmail.com> | 2020-12-31 16:28:42 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-31 18:44:31 +0100 |
commit | 8c27a74132c25e14a051777053559ad044d5a316 (patch) | |
tree | 140ee72493d028544f5d786b7a21dff241c6c1d4 /src | |
parent | main: Tidy up enum comparison (diff) | |
download | yuzu-8c27a74132c25e14a051777053559ad044d5a316.tar yuzu-8c27a74132c25e14a051777053559ad044d5a316.tar.gz yuzu-8c27a74132c25e14a051777053559ad044d5a316.tar.bz2 yuzu-8c27a74132c25e14a051777053559ad044d5a316.tar.lz yuzu-8c27a74132c25e14a051777053559ad044d5a316.tar.xz yuzu-8c27a74132c25e14a051777053559ad044d5a316.tar.zst yuzu-8c27a74132c25e14a051777053559ad044d5a316.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/main.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index e8f979440..2905f0224 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1054,14 +1054,18 @@ bool GMainWindow::LoadROM(const QString& filename, std::size_t program_index) { const u16 error_id = static_cast<u16>(result) - loader_id; const std::string error_code = fmt::format("({:04X}-{:04X})", loader_id, error_id); LOG_CRITICAL(Frontend, "Failed to load ROM! {}", error_code); - QMessageBox::critical( - this, - tr("Error while loading ROM! ").append(QString::fromStdString(error_code)), - QString::fromStdString(fmt::format( - "{}<br>Please follow <a href='https://yuzu-emu.org/help/quickstart/'>the " - "yuzu quickstart guide</a> to redump your files.<br>You can refer " - "to the yuzu wiki</a> or the yuzu Discord</a> for help.", - static_cast<Loader::ResultStatus>(error_id)))); + + const auto title = + tr("Error while loading ROM! %1", "%1 signifies a numeric error code.") + .arg(QString::fromStdString(error_code)); + const auto description = + tr("%1<br>Please follow <a href='https://yuzu-emu.org/help/quickstart/'>the " + "yuzu quickstart guide</a> to redump your files.<br>You can refer " + "to the yuzu wiki</a> or the yuzu Discord</a> for help.", + "%1 signifies a numeric error ID.") + .arg(error_id); + + QMessageBox::critical(this, title, description); } else { QMessageBox::critical( this, tr("Error while loading ROM!"), |