diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-05 23:47:03 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-05 23:49:37 +0100 |
commit | de095ded5cedaed3b7668142de59a2410018471d (patch) | |
tree | 01422247601310d93b26860d22e054e8021a0749 | |
parent | loaders: Make GetFileType() a const qualified member function (diff) | |
download | yuzu-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.cpp | 10 |
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)), }; |