loader: fix homebrew nro registration

master
Liam 2024-01-13 13:45:05 +07:00
parent aae9eea532
commit 76880b84f9
1 changed files with 6 additions and 6 deletions

@ -275,12 +275,12 @@ AppLoader_NRO::LoadResult AppLoader_NRO::Load(Kernel::KProcess& process, Core::S
return {ResultStatus::ErrorLoadingNRO, {}}; return {ResultStatus::ErrorLoadingNRO, {}};
} }
if (romfs != nullptr) { u64 program_id{};
ReadProgramId(program_id);
system.GetFileSystemController().RegisterProcess( system.GetFileSystemController().RegisterProcess(
process.GetProcessId(), {}, process.GetProcessId(), program_id,
std::make_unique<FileSys::RomFSFactory>(*this, system.GetContentProvider(), std::make_unique<FileSys::RomFSFactory>(*this, system.GetContentProvider(),
system.GetFileSystemController())); system.GetFileSystemController()));
}
is_loaded = true; is_loaded = true;
return {ResultStatus::Success, LoadParameters{Kernel::KThread::DefaultThreadPriority, return {ResultStatus::Success, LoadParameters{Kernel::KThread::DefaultThreadPriority,