diff options
author | Liam <byteslice@airmail.cc> | 2024-01-13 19:45:05 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-13 19:48:56 +0100 |
commit | 76880b84f9923a3fbdb53edb049d635d33de5e76 (patch) | |
tree | df4d1f2fb324bf572420da6256d69548ea0e1f68 /src/core/loader | |
parent | fsp-srv: use program registry for SetCurrentProcess (diff) | |
download | yuzu-76880b84f9923a3fbdb53edb049d635d33de5e76.tar yuzu-76880b84f9923a3fbdb53edb049d635d33de5e76.tar.gz yuzu-76880b84f9923a3fbdb53edb049d635d33de5e76.tar.bz2 yuzu-76880b84f9923a3fbdb53edb049d635d33de5e76.tar.lz yuzu-76880b84f9923a3fbdb53edb049d635d33de5e76.tar.xz yuzu-76880b84f9923a3fbdb53edb049d635d33de5e76.tar.zst yuzu-76880b84f9923a3fbdb53edb049d635d33de5e76.zip |
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/nro.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index 83371fcbd..f8225d697 100644 --- a/src/core/loader/nro.cpp +++ b/src/core/loader/nro.cpp @@ -275,12 +275,12 @@ AppLoader_NRO::LoadResult AppLoader_NRO::Load(Kernel::KProcess& process, Core::S return {ResultStatus::ErrorLoadingNRO, {}}; } - if (romfs != nullptr) { - system.GetFileSystemController().RegisterProcess( - process.GetProcessId(), {}, - std::make_unique<FileSys::RomFSFactory>(*this, system.GetContentProvider(), - system.GetFileSystemController())); - } + u64 program_id{}; + ReadProgramId(program_id); + system.GetFileSystemController().RegisterProcess( + process.GetProcessId(), program_id, + std::make_unique<FileSys::RomFSFactory>(*this, system.GetContentProvider(), + system.GetFileSystemController())); is_loaded = true; return {ResultStatus::Success, LoadParameters{Kernel::KThread::DefaultThreadPriority, |