summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-24 17:25:55 +0200
committerLioncash <mathew1800@gmail.com>2018-10-24 17:27:35 +0200
commit1edf8660bc75381882cb24cad05e398e8854742d (patch)
tree6118916985866e53a17de26576a4122526345569 /src
parentMerge pull request #1468 from DarkLordZach/profile-manager-ui (diff)
downloadyuzu-1edf8660bc75381882cb24cad05e398e8854742d.tar
yuzu-1edf8660bc75381882cb24cad05e398e8854742d.tar.gz
yuzu-1edf8660bc75381882cb24cad05e398e8854742d.tar.bz2
yuzu-1edf8660bc75381882cb24cad05e398e8854742d.tar.lz
yuzu-1edf8660bc75381882cb24cad05e398e8854742d.tar.xz
yuzu-1edf8660bc75381882cb24cad05e398e8854742d.tar.zst
yuzu-1edf8660bc75381882cb24cad05e398e8854742d.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/game_list_worker.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp
index 3881aba5f..3d865a12d 100644
--- a/src/yuzu/game_list_worker.cpp
+++ b/src/yuzu/game_list_worker.cpp
@@ -62,19 +62,24 @@ QString FormatPatchNameVersions(const FileSys::PatchManager& patch_manager,
FileSys::VirtualFile update_raw;
loader.ReadUpdateRaw(update_raw);
for (const auto& kv : patch_manager.GetPatchVersionNames(update_raw)) {
- if (!updatable && kv.first == "Update")
+ const bool is_update = kv.first == "Update";
+ if (!updatable && is_update) {
continue;
+ }
+
+ const QString type = QString::fromStdString(kv.first);
if (kv.second.empty()) {
- out.append(fmt::format("{}\n", kv.first).c_str());
+ out.append(QStringLiteral("%1\n").arg(type));
} else {
auto ver = kv.second;
// Display container name for packed updates
- if (ver == "PACKED" && kv.first == "Update")
+ if (is_update && ver == "PACKED") {
ver = Loader::GetFileTypeString(loader.GetFileType());
+ }
- out.append(fmt::format("{} ({})\n", kv.first, ver).c_str());
+ out.append(QStringLiteral("%1 (%2)\n").arg(type, QString::fromStdString(ver)));
}
}