diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-19 05:31:30 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-19 05:31:30 +0100 |
commit | c3becdbca7f1f20f8086b388564488646a2acb0a (patch) | |
tree | aa12e13a052c5d6633d6d36b3c871ae0dfe1ab50 /src/core/hle/service/filesystem/filesystem.cpp | |
parent | Merge pull request #1717 from FreddyFunk/swizzle-gob (diff) | |
download | yuzu-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 |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 5 |
1 files changed, 5 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), |