summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-05 23:47:03 +0100
committerLioncash <mathew1800@gmail.com>2018-12-05 23:49:37 +0100
commitde095ded5cedaed3b7668142de59a2410018471d (patch)
tree01422247601310d93b26860d22e054e8021a0749
parentloaders: Make GetFileType() a const qualified member function (diff)
downloadyuzu-de095ded5cedaed3b7668142de59a2410018471d.tar
yuzu-de095ded5cedaed3b7668142de59a2410018471d.tar.gz
yuzu-de095ded5cedaed3b7668142de59a2410018471d.tar.bz2
yuzu-de095ded5cedaed3b7668142de59a2410018471d.tar.lz
yuzu-de095ded5cedaed3b7668142de59a2410018471d.tar.xz
yuzu-de095ded5cedaed3b7668142de59a2410018471d.tar.zst
yuzu-de095ded5cedaed3b7668142de59a2410018471d.zip
-rw-r--r--src/yuzu/game_list_worker.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp
index 9fd074223..f16a6e41c 100644
--- a/src/yuzu/game_list_worker.cpp
+++ b/src/yuzu/game_list_worker.cpp
@@ -99,12 +99,14 @@ QList<QStandardItem*> MakeGameListEntry(const std::string& path, const std::stri
compatibility = it->second.first;
}
+ const auto file_type = loader.GetFileType();
+ const auto file_type_string = QString::fromStdString(Loader::GetFileTypeString(file_type));
+
QList<QStandardItem*> list{
- new GameListItemPath(
- FormatGameName(path), icon, QString::fromStdString(name),
- QString::fromStdString(Loader::GetFileTypeString(loader.GetFileType())), program_id),
+ new GameListItemPath(FormatGameName(path), icon, QString::fromStdString(name),
+ file_type_string, program_id),
new GameListItemCompat(compatibility),
- new GameListItem(QString::fromStdString(Loader::GetFileTypeString(loader.GetFileType()))),
+ new GameListItem(file_type_string),
new GameListItemSize(FileUtil::GetSize(path)),
};