aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/romfs_factory.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-01 20:32:38 -0500
committerLioncash <mathew1800@gmail.com>2018-12-01 23:43:23 -0500
commitde9051633cd76ad7e80110216797fab24022e179 (patch)
tree53a96ed05770f77a1dd9bb463863c38e3dffa36c /src/core/file_sys/romfs_factory.cpp
parentcd9570ce0d29d212475ad8e1dd4d91e884040e2f (diff)
filesystem: De-globalize registered_cache_union
We can just return a new instance of this when it's requested. This only ever holds pointers to the existing registed caches, so it's not a large object. Plus, this also gets rid of the need to keep around a separate member function just to properly clear out the union. Gets rid of one of five globals in the filesystem code.
Diffstat (limited to 'src/core/file_sys/romfs_factory.cpp')
-rw-r--r--src/core/file_sys/romfs_factory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp
index 0b645b106b..6ad1e4f867 100644
--- a/src/core/file_sys/romfs_factory.cpp
+++ b/src/core/file_sys/romfs_factory.cpp
@@ -48,7 +48,7 @@ ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id, StorageId storage, Conte
switch (storage) {
case StorageId::None:
- res = Service::FileSystem::GetUnionContents()->GetEntry(title_id, type);
+ res = Service::FileSystem::GetUnionContents().GetEntry(title_id, type);
break;
case StorageId::NandSystem:
res = Service::FileSystem::GetSystemNANDContents()->GetEntry(title_id, type);