summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/romfs_factory.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-29 04:37:42 +0200
committerZach Hilman <zachhilman@gmail.com>2018-09-04 22:24:02 +0200
commita6e75cd45b75a202eed1a68692e33e7732789dd2 (patch)
tree48af4f9227030e247474334067515a5cdd0f5283 /src/core/file_sys/romfs_factory.cpp
parentbktr: Fix missing includes and optimize style (diff)
downloadyuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar
yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.gz
yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.bz2
yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.lz
yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.xz
yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.zst
yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/romfs_factory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp
index fc9cf1eca..33ec62491 100644
--- a/src/core/file_sys/romfs_factory.cpp
+++ b/src/core/file_sys/romfs_factory.cpp
@@ -24,14 +24,15 @@ RomFSFactory::RomFSFactory(Loader::AppLoader& app_loader) {
}
updatable = app_loader.IsRomFSUpdatable();
+ ivfc_offset = app_loader.ReadRomFSIVFCOffset();
}
ResultVal<VirtualFile> RomFSFactory::OpenCurrentProcess() {
if (!updatable)
return MakeResult<VirtualFile>(file);
- const PatchManager patch_manager(Core::CurrentProcess()->process_id);
- return MakeResult<VirtualFile>(patch_manager.PatchRomFS(file));
+ const PatchManager patch_manager(Core::CurrentProcess()->program_id);
+ return MakeResult<VirtualFile>(patch_manager.PatchRomFS(file, ivfc_offset));
}
ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id, StorageId storage, ContentRecordType type) {