diff options
author | wwylele <wwylele@gmail.com> | 2016-04-13 23:04:05 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-05-04 12:02:49 +0200 |
commit | 5d5dd66d9222ced82dd61747ef4078fc1eae2496 (patch) | |
tree | e7495d933b0fbdc767426fc18940f95b7817c8ab /src/citra_qt/game_list.cpp | |
parent | Merge pull request #1726 from MerryMage/read-write-region (diff) | |
download | yuzu-5d5dd66d9222ced82dd61747ef4078fc1eae2496.tar yuzu-5d5dd66d9222ced82dd61747ef4078fc1eae2496.tar.gz yuzu-5d5dd66d9222ced82dd61747ef4078fc1eae2496.tar.bz2 yuzu-5d5dd66d9222ced82dd61747ef4078fc1eae2496.tar.lz yuzu-5d5dd66d9222ced82dd61747ef4078fc1eae2496.tar.xz yuzu-5d5dd66d9222ced82dd61747ef4078fc1eae2496.tar.zst yuzu-5d5dd66d9222ced82dd61747ef4078fc1eae2496.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/game_list.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index d14532102..32339e6a6 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -34,8 +34,8 @@ GameList::GameList(QWidget* parent) tree_view->setUniformRowHeights(true); item_model->insertColumns(0, COLUMN_COUNT); - item_model->setHeaderData(COLUMN_FILE_TYPE, Qt::Horizontal, "File type"); item_model->setHeaderData(COLUMN_NAME, Qt::Horizontal, "Name"); + item_model->setHeaderData(COLUMN_FILE_TYPE, Qt::Horizontal, "File type"); item_model->setHeaderData(COLUMN_SIZE, Qt::Horizontal, "Size"); connect(tree_view, SIGNAL(activated(const QModelIndex&)), this, SLOT(ValidateEntry(const QModelIndex&))); @@ -143,9 +143,15 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, bool d LOG_WARNING(Frontend, "Filetype and extension of file %s do not match.", physical_name.c_str()); } + std::vector<u8> smdh; + std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(FileUtil::IOFile(physical_name, "rb"), filetype, filename_filename, physical_name); + + if (loader) + loader->ReadIcon(smdh); + emit EntryReady({ + new GameListItemPath(QString::fromStdString(physical_name), smdh), new GameListItem(QString::fromStdString(Loader::GetFileTypeString(filetype))), - new GameListItemPath(QString::fromStdString(physical_name)), new GameListItemSize(FileUtil::GetSize(physical_name)), }); } |