diff options
| author | 2024-01-15 13:51:14 -0500 | |
|---|---|---|
| committer | 2024-01-15 13:51:14 -0500 | |
| commit | a2ffb419c921fdb2321472131e8c4447c3aab36a (patch) | |
| tree | 83965b0a6e58b0bb401f786286d372bfedf6dd1d /src/core/loader/nro.cpp | |
| parent | Merge pull request #12611 from liamwhite/resource-management-is-hard (diff) | |
| parent | loader: fix homebrew nro registration (diff) | |
| download | yuzu-a2ffb419c921fdb2321472131e8c4447c3aab36a.tar.gz yuzu-a2ffb419c921fdb2321472131e8c4447c3aab36a.tar.xz yuzu-a2ffb419c921fdb2321472131e8c4447c3aab36a.zip | |
Merge pull request #12612 from liamwhite/fs-pid
fsp-srv: use program registry for SetCurrentProcess
Diffstat (limited to 'src/core/loader/nro.cpp')
| -rw-r--r-- | src/core/loader/nro.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index e74697cda..f8225d697 100644 --- a/src/core/loader/nro.cpp +++ b/src/core/loader/nro.cpp | |||
| @@ -275,10 +275,12 @@ AppLoader_NRO::LoadResult AppLoader_NRO::Load(Kernel::KProcess& process, Core::S | |||
| 275 | return {ResultStatus::ErrorLoadingNRO, {}}; | 275 | return {ResultStatus::ErrorLoadingNRO, {}}; |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | if (romfs != nullptr) { | 278 | u64 program_id{}; |
| 279 | system.GetFileSystemController().RegisterRomFS(std::make_unique<FileSys::RomFSFactory>( | 279 | ReadProgramId(program_id); |
| 280 | *this, system.GetContentProvider(), system.GetFileSystemController())); | 280 | system.GetFileSystemController().RegisterProcess( |
| 281 | } | 281 | process.GetProcessId(), program_id, |
| 282 | std::make_unique<FileSys::RomFSFactory>(*this, system.GetContentProvider(), | ||
| 283 | system.GetFileSystemController())); | ||
| 282 | 284 | ||
| 283 | is_loaded = true; | 285 | is_loaded = true; |
| 284 | return {ResultStatus::Success, LoadParameters{Kernel::KThread::DefaultThreadPriority, | 286 | return {ResultStatus::Success, LoadParameters{Kernel::KThread::DefaultThreadPriority, |