file_sys/romfs_factory: Eliminate usage of the global system accessor

This commit is contained in:
Lioncash 2020-09-16 18:29:24 -04:00
parent 0e80567bef
commit a62c1999c5
5 changed files with 49 additions and 34 deletions

View file

@ -218,8 +218,8 @@ AppLoader_NRO::LoadResult AppLoader_NRO::Load(Kernel::Process& process, Core::Sy
}
if (romfs != nullptr) {
system.GetFileSystemController().RegisterRomFS(
std::make_unique<FileSys::RomFSFactory>(*this));
system.GetFileSystemController().RegisterRomFS(std::make_unique<FileSys::RomFSFactory>(
*this, system.GetContentProvider(), system.GetFileSystemController()));
}
is_loaded = true;