diff options
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) { | |||
| 57 | return physical_name_as_qstring; | 57 | return physical_name_as_qstring; |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | QString FormatPatchNameVersions(const FileSys::PatchManager& patch_manager, bool updatable = true) { | 60 | QString FormatPatchNameVersions(const FileSys::PatchManager& patch_manager, |
| 61 | Loader::AppLoader& loader, bool updatable = true) { | ||
| 61 | QString out; | 62 | QString out; |
| 62 | for (const auto& kv : patch_manager.GetPatchVersionNames()) { | 63 | FileSys::VirtualFile update_raw; |
| 64 | loader.ReadUpdateRaw(update_raw); | ||
| 65 | for (const auto& kv : patch_manager.GetPatchVersionNames(update_raw)) { | ||
| 63 | if (!updatable && kv.first == "Update") | 66 | if (!updatable && kv.first == "Update") |
| 64 | continue; | 67 | continue; |
| 65 | 68 | ||
| @@ -116,7 +119,7 @@ void GameListWorker::AddInstalledTitlesToGameList() { | |||
| 116 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType())), | 119 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType())), |
| 117 | program_id), | 120 | program_id), |
| 118 | new GameListItemCompat(compatibility), | 121 | new GameListItemCompat(compatibility), |
| 119 | new GameListItem(FormatPatchNameVersions(patch)), | 122 | new GameListItem(FormatPatchNameVersions(patch, *loader)), |
| 120 | new GameListItem( | 123 | new GameListItem( |
| 121 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType()))), | 124 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType()))), |
| 122 | new GameListItemSize(file->GetSize()), | 125 | new GameListItemSize(file->GetSize()), |
| @@ -206,7 +209,8 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign | |||
| 206 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType())), | 209 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType())), |
| 207 | program_id), | 210 | program_id), |
| 208 | new GameListItemCompat(compatibility), | 211 | new GameListItemCompat(compatibility), |
| 209 | new GameListItem(FormatPatchNameVersions(patch, loader->IsRomFSUpdatable())), | 212 | new GameListItem( |
| 213 | FormatPatchNameVersions(patch, *loader, loader->IsRomFSUpdatable())), | ||
| 210 | new GameListItem( | 214 | new GameListItem( |
| 211 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType()))), | 215 | QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType()))), |
| 212 | new GameListItemSize(FileUtil::GetSize(physical_name)), | 216 | new GameListItemSize(FileUtil::GetSize(physical_name)), |