summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MenuBar.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-11-02 11:37:51 +0100
committerLéo Lam <leo@innovatetechnologi.es>2017-11-02 16:02:55 +0100
commit71d4c47eb5733e329474f934b54fd59eb23381fc (patch)
tree2590fd61d339d7948988b3422f53f8034faba3cd /Source/Core/DolphinQt2/MenuBar.cpp
parent1cd4be1d0f837ea10741149bb2ea9c5e51ecb756 (diff)
UI: Tweak the NAND check popup message
Inform the user that re-launching titles can also fix the issues.
Diffstat (limited to 'Source/Core/DolphinQt2/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt2/MenuBar.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp
index 401f7f4d7e..e0a6315551 100644
--- a/Source/Core/DolphinQt2/MenuBar.cpp
+++ b/Source/Core/DolphinQt2/MenuBar.cpp
@@ -4,6 +4,8 @@
#include "DolphinQt2/MenuBar.h"
+#include <cinttypes>
+
#include <QAction>
#include <QDesktopServices>
#include <QFileDialog>
@@ -13,6 +15,7 @@
#include "Common/CommonPaths.h"
#include "Common/FileUtil.h"
+#include "Common/StringUtil.h"
#include "Core/CommonTitles.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
@@ -550,20 +553,23 @@ void MenuBar::CheckNAND()
"Do you want to try to repair the NAND?");
if (!result.titles_to_remove.empty())
{
- message += tr("\n\nWARNING: Fixing this NAND requires the deletion of titles that have "
- "incomplete data on the NAND, including all associated save data. "
- "By continuing, the following title(s) will be removed:\n\n");
+ std::string title_listings;
Core::TitleDatabase title_db;
for (const u64 title_id : result.titles_to_remove)
{
const std::string name = title_db.GetTitleName(title_id);
- message += !name.empty() ?
- QStringLiteral("%1 (%2)")
- .arg(QString::fromStdString(name))
- .arg(title_id, 16, 16, QLatin1Char('0')) :
- QStringLiteral("%1").arg(title_id, 16, 16, QLatin1Char('0'));
- message += QStringLiteral("\n");
+ title_listings += !name.empty() ?
+ StringFromFormat("%s (%016" PRIx64 ")", name.c_str(), title_id) :
+ StringFromFormat("%016" PRIx64, title_id);
+ title_listings += "\n";
}
+
+ message += tr("\n\nWARNING: Fixing this NAND requires the deletion of titles that have "
+ "incomplete data on the NAND, including all associated save data. "
+ "By continuing, the following title(s) will be removed:\n\n"
+ "%1"
+ "\nLaunching these titles may also fix the issues.")
+ .arg(QString::fromStdString(title_listings));
}
if (QMessageBox::question(this, tr("NAND Check"), message) != QMessageBox::Yes)