summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-23 06:01:38 +0100
committerLiam <byteslice@airmail.cc>2024-01-23 06:01:38 +0100
commit5f9a45ada95f67be92cb99ec0f4ced188326b397 (patch)
tree3aead3643223819b60f541ce2ab498bcb154a64e
parentMerge pull request #12753 from liamwhite/why (diff)
downloadyuzu-5f9a45ada95f67be92cb99ec0f4ced188326b397.tar
yuzu-5f9a45ada95f67be92cb99ec0f4ced188326b397.tar.gz
yuzu-5f9a45ada95f67be92cb99ec0f4ced188326b397.tar.bz2
yuzu-5f9a45ada95f67be92cb99ec0f4ced188326b397.tar.lz
yuzu-5f9a45ada95f67be92cb99ec0f4ced188326b397.tar.xz
yuzu-5f9a45ada95f67be92cb99ec0f4ced188326b397.tar.zst
yuzu-5f9a45ada95f67be92cb99ec0f4ced188326b397.zip
-rw-r--r--src/core/loader/nsp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/loader/nsp.cpp b/src/core/loader/nsp.cpp
index 28116ff3a..3016d5f25 100644
--- a/src/core/loader/nsp.cpp
+++ b/src/core/loader/nsp.cpp
@@ -10,6 +10,7 @@
#include "core/file_sys/nca_metadata.h"
#include "core/file_sys/patch_manager.h"
#include "core/file_sys/registered_cache.h"
+#include "core/file_sys/romfs_factory.h"
#include "core/file_sys/submission_package.h"
#include "core/hle/kernel/k_process.h"
#include "core/hle/service/filesystem/filesystem.h"
@@ -109,6 +110,13 @@ AppLoader_NSP::LoadResult AppLoader_NSP::Load(Kernel::KProcess& process, Core::S
return result;
}
+ if (nsp->IsExtractedType()) {
+ system.GetFileSystemController().RegisterProcess(
+ process.GetProcessId(), {},
+ std::make_shared<FileSys::RomFSFactory>(*this, system.GetContentProvider(),
+ system.GetFileSystemController()));
+ }
+
FileSys::VirtualFile update_raw;
if (ReadUpdateRaw(update_raw) == ResultStatus::Success && update_raw != nullptr) {
system.GetFileSystemController().SetPackedUpdate(process.GetProcessId(),