summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-19 05:31:30 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-19 05:31:30 +0100
commitc3becdbca7f1f20f8086b388564488646a2acb0a (patch)
treeaa12e13a052c5d6633d6d36b3c871ae0dfe1ab50
parentMerge pull request #1717 from FreddyFunk/swizzle-gob (diff)
downloadyuzu-c3becdbca7f1f20f8086b388564488646a2acb0a.tar
yuzu-c3becdbca7f1f20f8086b388564488646a2acb0a.tar.gz
yuzu-c3becdbca7f1f20f8086b388564488646a2acb0a.tar.bz2
yuzu-c3becdbca7f1f20f8086b388564488646a2acb0a.tar.lz
yuzu-c3becdbca7f1f20f8086b388564488646a2acb0a.tar.xz
yuzu-c3becdbca7f1f20f8086b388564488646a2acb0a.tar.zst
yuzu-c3becdbca7f1f20f8086b388564488646a2acb0a.zip
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp5
-rw-r--r--src/core/hle/service/filesystem/filesystem.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index 5d6294016..2aa77f68d 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -341,6 +341,10 @@ std::shared_ptr<FileSys::RegisteredCacheUnion> GetUnionContents() {
return registered_cache_union;
}
+void ClearUnionContents() {
+ registered_cache_union = nullptr;
+}
+
FileSys::RegisteredCache* GetSystemNANDContents() {
LOG_TRACE(Service_FS, "Opening System NAND Contents");
@@ -391,6 +395,7 @@ void CreateFactories(FileSys::VfsFilesystem& vfs, bool overwrite) {
bis_factory = nullptr;
save_data_factory = nullptr;
sdmc_factory = nullptr;
+ ClearUnionContents();
}
auto nand_directory = vfs.OpenDirectory(FileUtil::GetUserPath(FileUtil::UserPath::NANDDir),
diff --git a/src/core/hle/service/filesystem/filesystem.h b/src/core/hle/service/filesystem/filesystem.h
index ff9182e84..0a6cb6635 100644
--- a/src/core/hle/service/filesystem/filesystem.h
+++ b/src/core/hle/service/filesystem/filesystem.h
@@ -49,6 +49,7 @@ ResultVal<FileSys::VirtualDir> OpenSaveDataSpace(FileSys::SaveDataSpaceId space)
ResultVal<FileSys::VirtualDir> OpenSDMC();
std::shared_ptr<FileSys::RegisteredCacheUnion> GetUnionContents();
+void ClearUnionContents();
FileSys::RegisteredCache* GetSystemNANDContents();
FileSys::RegisteredCache* GetUserNANDContents();