filesystem: Cache RegisteredCacheUnion instead of constructing on demand

Prevents unnecessary re-reads of the metadata and unnecessary temporary objects.
This commit is contained in:
Zach Hilman
2018-11-01 20:24:32 -04:00
parent 97d425c304
commit 8f183a47dd
2 changed files with 11 additions and 4 deletions

View File

@ -47,7 +47,7 @@ ResultVal<FileSys::VirtualDir> OpenSaveData(FileSys::SaveDataSpaceId space,
FileSys::SaveDataDescriptor save_struct);
ResultVal<FileSys::VirtualDir> OpenSDMC();
std::unique_ptr<FileSys::RegisteredCacheUnion> GetUnionContents();
std::shared_ptr<FileSys::RegisteredCacheUnion> GetUnionContents();
FileSys::RegisteredCache* GetSystemNANDContents();
FileSys::RegisteredCache* GetUserNANDContents();