savedata_factory: Eliminate usage of the global system instance

Now there's only two meaningful instances left in core.
This commit is contained in:
Lioncash 2020-11-27 01:30:17 -05:00
parent ee5e77fbf9
commit 073e07ae2d
4 changed files with 22 additions and 14 deletions

View file

@ -717,7 +717,8 @@ void FileSystemController::CreateFactories(FileSys::VfsFilesystem& vfs, bool ove
}
if (save_data_factory == nullptr) {
save_data_factory = std::make_unique<FileSys::SaveDataFactory>(std::move(nand_directory));
save_data_factory =
std::make_unique<FileSys::SaveDataFactory>(system, std::move(nand_directory));
}
if (sdmc_factory == nullptr) {