diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-25 15:19:42 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-05 14:47:24 +0200 |
commit | d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e (patch) | |
tree | 34769a5391acffa540933e6351a44e9961e80f56 /src/core/file_sys/romfs_factory.cpp | |
parent | loader: Add getter for packed update (diff) | |
download | yuzu-d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e.tar yuzu-d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e.tar.gz yuzu-d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e.tar.bz2 yuzu-d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e.tar.lz yuzu-d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e.tar.xz yuzu-d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e.tar.zst yuzu-d79d4fd764c194e6c8c4d57ed0fd308e401c2f6e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/romfs_factory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp index 4994c2532..a0ee16895 100644 --- a/src/core/file_sys/romfs_factory.cpp +++ b/src/core/file_sys/romfs_factory.cpp @@ -24,6 +24,7 @@ RomFSFactory::RomFSFactory(Loader::AppLoader& app_loader) { LOG_ERROR(Service_FS, "Unable to read RomFS!"); } + app_loader.ReadUpdateRaw(update_raw); updatable = app_loader.IsRomFSUpdatable(); ivfc_offset = app_loader.ReadRomFSIVFCOffset(); } @@ -35,7 +36,8 @@ ResultVal<VirtualFile> RomFSFactory::OpenCurrentProcess() { return MakeResult<VirtualFile>(file); const PatchManager patch_manager(Core::CurrentProcess()->GetTitleID()); - return MakeResult<VirtualFile>(patch_manager.PatchRomFS(file, ivfc_offset)); + return MakeResult<VirtualFile>( + patch_manager.PatchRomFS(file, ivfc_offset, ContentRecordType::Program, update_raw)); } ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id, StorageId storage, ContentRecordType type) { |