diff options
author | Liam <byteslice@airmail.cc> | 2023-06-03 14:42:52 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-06-03 14:50:54 +0200 |
commit | 790f91fcc57458ef63db7bf1baccc9d9ca2d57ce (patch) | |
tree | b5612c33c77edf6a98ee4eea7f663233d8649ca1 /src/core/file_sys/patch_manager.cpp | |
parent | Merge pull request #10575 from bm01/issue-template (diff) | |
download | yuzu-790f91fcc57458ef63db7bf1baccc9d9ca2d57ce.tar yuzu-790f91fcc57458ef63db7bf1baccc9d9ca2d57ce.tar.gz yuzu-790f91fcc57458ef63db7bf1baccc9d9ca2d57ce.tar.bz2 yuzu-790f91fcc57458ef63db7bf1baccc9d9ca2d57ce.tar.lz yuzu-790f91fcc57458ef63db7bf1baccc9d9ca2d57ce.tar.xz yuzu-790f91fcc57458ef63db7bf1baccc9d9ca2d57ce.tar.zst yuzu-790f91fcc57458ef63db7bf1baccc9d9ca2d57ce.zip |
Diffstat (limited to 'src/core/file_sys/patch_manager.cpp')
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 4c80e13a9..f786f2add 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -21,6 +21,7 @@ #include "core/file_sys/patch_manager.h" #include "core/file_sys/registered_cache.h" #include "core/file_sys/romfs.h" +#include "core/file_sys/vfs_cached.h" #include "core/file_sys/vfs_layered.h" #include "core/file_sys/vfs_vector.h" #include "core/hle/service/filesystem/filesystem.h" @@ -380,11 +381,11 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t auto romfs_dir = FindSubdirectoryCaseless(subdir, "romfs"); if (romfs_dir != nullptr) - layers.push_back(std::move(romfs_dir)); + layers.push_back(std::make_shared<CachedVfsDirectory>(romfs_dir)); auto ext_dir = FindSubdirectoryCaseless(subdir, "romfs_ext"); if (ext_dir != nullptr) - layers_ext.push_back(std::move(ext_dir)); + layers_ext.push_back(std::make_shared<CachedVfsDirectory>(ext_dir)); } // When there are no layers to apply, return early as there is no need to rebuild the RomFS |