diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-25 20:07:13 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-05 14:48:44 +0200 |
commit | 5acaeb04c4f4ebdffda37717347f6a0c82a71aa4 (patch) | |
tree | 3db615cdd17ec078b73a1d2c19334205ff1a9fae | |
parent | game_list: Add XCI update versioning to game list (diff) | |
download | yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar.gz yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar.bz2 yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar.lz yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar.xz yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar.zst yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.zip |
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 | ||||
-rw-r--r-- | src/yuzu/game_list_worker.cpp | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index b43880e92..3fc44fb5c 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -209,7 +209,7 @@ VirtualFile PatchManager::PatchRomFS(VirtualFile romfs, u64 ivfc_offset, Content const auto new_nca = std::make_shared<NCA>(update, romfs, ivfc_offset); if (new_nca->GetStatus() == Loader::ResultStatus::Success && new_nca->GetRomFS() != nullptr) { - LOG_INFO(Loader, " RomFS: Update (XCI) applied successfully"); + LOG_INFO(Loader, " RomFS: Update (PACKED) applied successfully"); romfs = new_nca->GetRomFS(); } } @@ -253,7 +253,7 @@ std::map<PatchType, std::string> PatchManager::GetPatchVersionNames(VirtualFile FormatTitleVersion(meta_ver.get(), TitleVersionFormat::ThreeElements)); } } else if (update_raw != nullptr) { - out[PatchType::Update] = "XCI"; + out[PatchType::Update] = "PACKED"; } } diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp index 2bcc54b2f..af5b20b90 100644 --- a/src/yuzu/game_list_worker.cpp +++ b/src/yuzu/game_list_worker.cpp @@ -69,7 +69,14 @@ QString FormatPatchNameVersions(const FileSys::PatchManager& patch_manager, if (kv.second.empty()) { out.append(fmt::format("{}\n", kv.first).c_str()); } else { - out.append(fmt::format("{} ({})\n", kv.first, kv.second).c_str()); + auto ver = kv.second; + + // Display container name for packed updates + if (ver == "PACKED" && kv.first == FileSys::PatchType::Update) + ver = Loader::GetFileTypeString(loader.GetFileType()); + + out.append( + fmt::format("{} ({})\n", FileSys::FormatPatchTypeName(kv.first), ver).c_str()); } } |