summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-19 18:47:30 +0200
committerLioncash <mathew1800@gmail.com>2019-05-19 18:47:33 +0200
commit17255cd835a4727ab83fd2bfa1b4d21a98a19f61 (patch)
tree2ea09e229916d040b37d4867e8ad06b67f41c16f
parentyuzu/configuration/configure_mouse_advanced: Clean up array accesses (diff)
downloadyuzu-17255cd835a4727ab83fd2bfa1b4d21a98a19f61.tar
yuzu-17255cd835a4727ab83fd2bfa1b4d21a98a19f61.tar.gz
yuzu-17255cd835a4727ab83fd2bfa1b4d21a98a19f61.tar.bz2
yuzu-17255cd835a4727ab83fd2bfa1b4d21a98a19f61.tar.lz
yuzu-17255cd835a4727ab83fd2bfa1b4d21a98a19f61.tar.xz
yuzu-17255cd835a4727ab83fd2bfa1b4d21a98a19f61.tar.zst
yuzu-17255cd835a4727ab83fd2bfa1b4d21a98a19f61.zip
-rw-r--r--src/yuzu/configuration/configure_per_general.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/yuzu/configuration/configure_per_general.cpp b/src/yuzu/configuration/configure_per_general.cpp
index 022b94609..2bdfc8e5a 100644
--- a/src/yuzu/configuration/configure_per_general.cpp
+++ b/src/yuzu/configuration/configure_per_general.cpp
@@ -88,15 +88,15 @@ void ConfigurePerGameGeneral::loadFromFile(FileSys::VirtualFile file) {
}
void ConfigurePerGameGeneral::loadConfiguration() {
- if (file == nullptr)
+ if (file == nullptr) {
return;
+ }
- const auto loader = Loader::GetLoader(file);
-
- ui->display_title_id->setText(fmt::format("{:016X}", title_id).c_str());
+ ui->display_title_id->setText(QString::fromStdString(fmt::format("{:016X}", title_id)));
FileSys::PatchManager pm{title_id};
const auto control = pm.GetControlMetadata();
+ const auto loader = Loader::GetLoader(file);
if (control.first != nullptr) {
ui->display_version->setText(QString::fromStdString(control.first->GetVersionString()));
@@ -142,8 +142,10 @@ void ConfigurePerGameGeneral::loadConfiguration() {
const auto& disabled = Settings::values.disabled_addons[title_id];
for (const auto& patch : pm.GetPatchVersionNames(update_raw)) {
- QStandardItem* first_item = new QStandardItem;
- const auto name = QString::fromStdString(patch.first).replace("[D] ", "");
+ const auto name =
+ QString::fromStdString(patch.first).replace(QStringLiteral("[D] "), QString{});
+
+ auto* const first_item = new QStandardItem;
first_item->setText(name);
first_item->setCheckable(true);