summaryrefslogtreecommitdiff
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-09-25 14:07:13 -0400
committerGravatar Zach Hilman2018-10-05 08:48:44 -0400
commit5acaeb04c4f4ebdffda37717347f6a0c82a71aa4 (patch)
tree3db615cdd17ec078b73a1d2c19334205ff1a9fae /src/core/file_sys
parentgame_list: Add XCI update versioning to game list (diff)
downloadyuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar.gz
yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.tar.xz
yuzu-5acaeb04c4f4ebdffda37717347f6a0c82a71aa4.zip
patch_manager: Add support for NSP packed updates
Reads as Update (NSP) in add-ons
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/patch_manager.cpp4
1 files changed, 2 insertions, 2 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
209 const auto new_nca = std::make_shared<NCA>(update, romfs, ivfc_offset); 209 const auto new_nca = std::make_shared<NCA>(update, romfs, ivfc_offset);
210 if (new_nca->GetStatus() == Loader::ResultStatus::Success && 210 if (new_nca->GetStatus() == Loader::ResultStatus::Success &&
211 new_nca->GetRomFS() != nullptr) { 211 new_nca->GetRomFS() != nullptr) {
212 LOG_INFO(Loader, " RomFS: Update (XCI) applied successfully"); 212 LOG_INFO(Loader, " RomFS: Update (PACKED) applied successfully");
213 romfs = new_nca->GetRomFS(); 213 romfs = new_nca->GetRomFS();
214 } 214 }
215 } 215 }
@@ -253,7 +253,7 @@ std::map<PatchType, std::string> PatchManager::GetPatchVersionNames(VirtualFile
253 FormatTitleVersion(meta_ver.get(), TitleVersionFormat::ThreeElements)); 253 FormatTitleVersion(meta_ver.get(), TitleVersionFormat::ThreeElements));
254 } 254 }
255 } else if (update_raw != nullptr) { 255 } else if (update_raw != nullptr) {
256 out[PatchType::Update] = "XCI"; 256 out[PatchType::Update] = "PACKED";
257 } 257 }
258 } 258 }
259 259