summaryrefslogtreecommitdiff
path: root/src/core/file_sys/romfs.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2023-06-03 23:23:45 -0700
committerGravatar GitHub2023-06-03 23:23:45 -0700
commit125a0e5a0700e1a656faf7d65b76b0d95e8812a5 (patch)
treee59bc8c267654f5dbb76ec19c4bda03f57fafdbf /src/core/file_sys/romfs.cpp
parentMerge pull request #10550 from kkoniuszy/linux-map-buildup-fix (diff)
parentromfs: use vfs_cached for romfs output (diff)
downloadyuzu-125a0e5a0700e1a656faf7d65b76b0d95e8812a5.tar.gz
yuzu-125a0e5a0700e1a656faf7d65b76b0d95e8812a5.tar.xz
yuzu-125a0e5a0700e1a656faf7d65b76b0d95e8812a5.zip
Merge pull request #10588 from liamwhite/vfs-cached
vfs: add vfs_cached for romfs build
Diffstat (limited to 'src/core/file_sys/romfs.cpp')
-rw-r--r--src/core/file_sys/romfs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/romfs.cpp b/src/core/file_sys/romfs.cpp
index fb5683a6b..614da2130 100644
--- a/src/core/file_sys/romfs.cpp
+++ b/src/core/file_sys/romfs.cpp
@@ -9,6 +9,7 @@
9#include "core/file_sys/fsmitm_romfsbuild.h" 9#include "core/file_sys/fsmitm_romfsbuild.h"
10#include "core/file_sys/romfs.h" 10#include "core/file_sys/romfs.h"
11#include "core/file_sys/vfs.h" 11#include "core/file_sys/vfs.h"
12#include "core/file_sys/vfs_cached.h"
12#include "core/file_sys/vfs_concat.h" 13#include "core/file_sys/vfs_concat.h"
13#include "core/file_sys/vfs_offset.h" 14#include "core/file_sys/vfs_offset.h"
14#include "core/file_sys/vfs_vector.h" 15#include "core/file_sys/vfs_vector.h"
@@ -132,7 +133,7 @@ VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) {
132 out = out->GetSubdirectories().front(); 133 out = out->GetSubdirectories().front();
133 } 134 }
134 135
135 return out; 136 return std::make_shared<CachedVfsDirectory>(out);
136} 137}
137 138
138VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) { 139VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) {