VERY experimental Nintendo Switch 2 emulator
C++
loader: fix homebrew nro registration
Liam36739873d2ee
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cppindex 83371fcbd9..f8225d6975 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::Sreturn {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,