summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/patch_manager.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index 0701e3f0e..a4baddb15 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -352,7 +352,8 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t
352 const Service::FileSystem::FileSystemController& fs_controller) { 352 const Service::FileSystem::FileSystemController& fs_controller) {
353 const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); 353 const auto load_dir = fs_controller.GetModificationLoadRoot(title_id);
354 const auto sdmc_load_dir = fs_controller.GetSDMCModificationLoadRoot(title_id); 354 const auto sdmc_load_dir = fs_controller.GetSDMCModificationLoadRoot(title_id);
355 if ((type != ContentRecordType::Program && type != ContentRecordType::Data) || 355 if ((type != ContentRecordType::Program && type != ContentRecordType::Data &&
356 type != ContentRecordType::HtmlDocument) ||
356 (load_dir == nullptr && sdmc_load_dir == nullptr)) { 357 (load_dir == nullptr && sdmc_load_dir == nullptr)) {
357 return; 358 return;
358 } 359 }
@@ -381,6 +382,12 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t
381 auto ext_dir = FindSubdirectoryCaseless(subdir, "romfs_ext"); 382 auto ext_dir = FindSubdirectoryCaseless(subdir, "romfs_ext");
382 if (ext_dir != nullptr) 383 if (ext_dir != nullptr)
383 layers_ext.push_back(std::make_shared<CachedVfsDirectory>(ext_dir)); 384 layers_ext.push_back(std::make_shared<CachedVfsDirectory>(ext_dir));
385
386 if (type == ContentRecordType::HtmlDocument) {
387 auto manual_dir = FindSubdirectoryCaseless(subdir, "manual_html");
388 if (manual_dir != nullptr)
389 layers.push_back(std::make_shared<CachedVfsDirectory>(manual_dir));
390 }
384 } 391 }
385 392
386 // When there are no layers to apply, return early as there is no need to rebuild the RomFS 393 // When there are no layers to apply, return early as there is no need to rebuild the RomFS