aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/romfs_factory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-21 22:12:34 -0800
committerGitHub <noreply@github.com>2020-11-21 22:12:34 -0800
commitc0ca8b9fa4d1a6c4bdbef2fdb1bf72d57679d9a4 (patch)
treebe80bf80153857db46a24de4b34a7d8bbac7a0ae /src/core/file_sys/romfs_factory.cpp
parente718f63b22e77ef4d0fe080e14534aee5b5e0271 (diff)
parentb4b63c878fafaa787d3d40d33582471ed4b7c07d (diff)
Merge pull request #4944 from lioncash/system-rem
patch_manager: Remove usages of the global system instance
Diffstat (limited to 'src/core/file_sys/romfs_factory.cpp')
-rw-r--r--src/core/file_sys/romfs_factory.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp
index e967a254e2..9871997473 100644
--- a/src/core/file_sys/romfs_factory.cpp
+++ b/src/core/file_sys/romfs_factory.cpp
@@ -37,10 +37,12 @@ void RomFSFactory::SetPackedUpdate(VirtualFile update_raw) {
}
ResultVal<VirtualFile> RomFSFactory::OpenCurrentProcess(u64 current_process_title_id) const {
- if (!updatable)
+ if (!updatable) {
return MakeResult<VirtualFile>(file);
+ }
- const PatchManager patch_manager(current_process_title_id);
+ const PatchManager patch_manager{current_process_title_id, filesystem_controller,
+ content_provider};
return MakeResult<VirtualFile>(
patch_manager.PatchRomFS(file, ivfc_offset, ContentRecordType::Program, update_raw));
}