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

@ -58,8 +58,8 @@ AppLoader_NCA::LoadResult AppLoader_NCA::Load(Kernel::Process& process, Core::Sy
}
if (nca->GetRomFS() != nullptr && nca->GetRomFS()->GetSize() > 0) {
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;