diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-25 15:21:06 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-05 14:47:55 +0200 |
commit | cf7aba4817e4b00e9c6eaa5b81500b32e61f4655 (patch) | |
tree | b909fcc97e8a6ad5ab68386e54fd501991fae782 /src | |
parent | patch_manager: Add support for packed updates (diff) | |
download | yuzu-cf7aba4817e4b00e9c6eaa5b81500b32e61f4655.tar yuzu-cf7aba4817e4b00e9c6eaa5b81500b32e61f4655.tar.gz yuzu-cf7aba4817e4b00e9c6eaa5b81500b32e61f4655.tar.bz2 yuzu-cf7aba4817e4b00e9c6eaa5b81500b32e61f4655.tar.lz yuzu-cf7aba4817e4b00e9c6eaa5b81500b32e61f4655.tar.xz yuzu-cf7aba4817e4b00e9c6eaa5b81500b32e61f4655.tar.zst yuzu-cf7aba4817e4b00e9c6eaa5b81500b32e61f4655.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/game_list_worker.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp index 1947bdb93..2bcc54b2f 100644 --- a/src/yuzu/game_list_worker.cpp +++ b/src/yuzu/game_list_worker.cpp @@ -57,9 +57,12 @@ QString FormatGameName(const std::string& physical_name) { return physical_name_as_qstring; } -QString FormatPatchNameVersions(const FileSys::PatchManager& patch_manager, bool updatable = true) { +QString FormatPatchNameVersions(const FileSys::PatchManager& patch_manager, + Loader::AppLoader& loader, bool updatable = true) { QString out; - for (const auto& kv : patch_manager.GetPatchVersionNames()) { + FileSys::VirtualFile update_raw; + loader.ReadUpdateRaw(update_raw); + for (const auto& kv : patch_manager.GetPatchVersionNames(update_raw)) { if (!updatable && kv.first == "Update") continue; @@ -116,7 +119,7 @@ void GameListWorker::AddInstalledTitlesToGameList() { QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType())), program_id), new GameListItemCompat(compatibility), - new GameListItem(FormatPatchNameVersions(patch)), + new GameListItem(FormatPatchNameVersions(patch, *loader)), new GameListItem( QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType()))), new GameListItemSize(file->GetSize()), @@ -206,7 +209,8 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType())), program_id), new GameListItemCompat(compatibility), - new GameListItem(FormatPatchNameVersions(patch, loader->IsRomFSUpdatable())), + new GameListItem( + FormatPatchNameVersions(patch, *loader, loader->IsRomFSUpdatable())), new GameListItem( QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType()))), new GameListItemSize(FileUtil::GetSize(physical_name)), |