diff options
| author | bunnei <bunneidev@gmail.com> | 2018-10-06 23:58:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-06 23:58:24 -0400 |
| commit | 6e4d2e672d1083f29186ea0ddcb33cd634e360e3 (patch) | |
| tree | cbd20aab8705f8efac340c509ca71b08865a1417 /src/core/file_sys/romfs_factory.cpp | |
| parent | 2c0b0ad50d71ff3b9a50052362b2ffc5ca7977da (diff) | |
| parent | 38c2ac95af814e21e65e2785b276c4f64bfead71 (diff) | |
Merge pull request #1396 from DarkLordZach/packed-updates
loader: Add support for packed updates
Diffstat (limited to 'src/core/file_sys/romfs_factory.cpp')
| -rw-r--r-- | src/core/file_sys/romfs_factory.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp index 4994c2532..0b645b106 100644 --- a/src/core/file_sys/romfs_factory.cpp +++ b/src/core/file_sys/romfs_factory.cpp @@ -30,12 +30,17 @@ RomFSFactory::RomFSFactory(Loader::AppLoader& app_loader) { RomFSFactory::~RomFSFactory() = default; +void RomFSFactory::SetPackedUpdate(VirtualFile update_raw) { + this->update_raw = std::move(update_raw); +} + ResultVal<VirtualFile> RomFSFactory::OpenCurrentProcess() { if (!updatable) 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) { |
