summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/patch_manager.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-17 15:03:56 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-17 15:03:56 +0200
commitd8273c38578780e1e8880648d07d292f6d2461a6 (patch)
treeb4c2e7fdfcf48b415e7885a411c42daa4d1ef5cd /src/core/file_sys/patch_manager.cpp
parentMerge pull request #1443 from DarkLordZach/lower-loader-logs-1 (diff)
downloadyuzu-d8273c38578780e1e8880648d07d292f6d2461a6.tar
yuzu-d8273c38578780e1e8880648d07d292f6d2461a6.tar.gz
yuzu-d8273c38578780e1e8880648d07d292f6d2461a6.tar.bz2
yuzu-d8273c38578780e1e8880648d07d292f6d2461a6.tar.lz
yuzu-d8273c38578780e1e8880648d07d292f6d2461a6.tar.xz
yuzu-d8273c38578780e1e8880648d07d292f6d2461a6.tar.zst
yuzu-d8273c38578780e1e8880648d07d292f6d2461a6.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/patch_manager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index 0117cb0bf..1f4928562 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -168,7 +168,8 @@ bool PatchManager::HasNSOPatch(const std::array<u8, 32>& build_id_) const {
static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType type) {
const auto load_dir = Service::FileSystem::GetModificationLoadRoot(title_id);
- if (type != ContentRecordType::Program || load_dir == nullptr || load_dir->GetSize() <= 0) {
+ if ((type != ContentRecordType::Program && type != ContentRecordType::Data) ||
+ load_dir == nullptr || load_dir->GetSize() <= 0) {
return;
}
@@ -218,7 +219,7 @@ VirtualFile PatchManager::PatchRomFS(VirtualFile romfs, u64 ivfc_offset, Content
title_id, static_cast<u8>(type))
.c_str();
- if (type == ContentRecordType::Program)
+ if (type == ContentRecordType::Program || type == ContentRecordType::Data)
LOG_INFO(Loader, log_string);
else
LOG_DEBUG(Loader, log_string);