yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

patch_manager: Add support for using LayeredFS with Data

This commit is contained in:
Zach Hilman 2018-10-17 09:03:56 -04:00
parent 78f2a6a9e1
commit d8273c3857
1 changed files with 3 additions and 2 deletions

View File

@ -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) { static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType type) {
const auto load_dir = Service::FileSystem::GetModificationLoadRoot(title_id); 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; return;
} }
@ -218,7 +219,7 @@ VirtualFile PatchManager::PatchRomFS(VirtualFile romfs, u64 ivfc_offset, Content
title_id, static_cast<u8>(type)) title_id, static_cast<u8>(type))
.c_str(); .c_str();
if (type == ContentRecordType::Program) if (type == ContentRecordType::Program || type == ContentRecordType::Data)
LOG_INFO(Loader, log_string); LOG_INFO(Loader, log_string);
else else
LOG_DEBUG(Loader, log_string); LOG_DEBUG(Loader, log_string);