summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-28 19:56:12 +0100
committerZach Hilman <zachhilman@gmail.com>2018-10-29 18:54:38 +0100
commitf2f679bf3f823592aa9d13294e76c24c47288305 (patch)
tree0cefee37b49d6270a6db55694dc3db599c2ab588 /src
parentcontrol_metadata: Add GetRawBytes function to NACP (diff)
downloadyuzu-f2f679bf3f823592aa9d13294e76c24c47288305.tar
yuzu-f2f679bf3f823592aa9d13294e76c24c47288305.tar.gz
yuzu-f2f679bf3f823592aa9d13294e76c24c47288305.tar.bz2
yuzu-f2f679bf3f823592aa9d13294e76c24c47288305.tar.lz
yuzu-f2f679bf3f823592aa9d13294e76c24c47288305.tar.xz
yuzu-f2f679bf3f823592aa9d13294e76c24c47288305.tar.zst
yuzu-f2f679bf3f823592aa9d13294e76c24c47288305.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/loader/nro.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index bc8e402a8..c8e491fec 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -12,10 +12,12 @@
#include "common/swap.h"
#include "core/core.h"
#include "core/file_sys/control_metadata.h"
+#include "core/file_sys/romfs_factory.h"
#include "core/file_sys/vfs_offset.h"
#include "core/gdbstub/gdbstub.h"
#include "core/hle/kernel/process.h"
#include "core/hle/kernel/vm_manager.h"
+#include "core/hle/service/filesystem/filesystem.h"
#include "core/loader/nro.h"
#include "core/loader/nso.h"
#include "core/memory.h"
@@ -208,6 +210,9 @@ ResultStatus AppLoader_NRO::Load(Kernel::Process& process) {
return ResultStatus::ErrorLoadingNRO;
}
+ if (romfs != nullptr)
+ Service::FileSystem::RegisterRomFS(std::make_unique<FileSys::RomFSFactory>(*this));
+
process.Run(base_address, Kernel::THREADPRIO_DEFAULT, Memory::DEFAULT_STACK_SIZE);
is_loaded = true;