romfs: use vfs_cached for romfs output
This commit is contained in:
parent
790f91fcc5
commit
6e23c84669
3 changed files with 2 additions and 24 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "core/file_sys/fsmitm_romfsbuild.h"
|
||||
#include "core/file_sys/romfs.h"
|
||||
#include "core/file_sys/vfs.h"
|
||||
#include "core/file_sys/vfs_cached.h"
|
||||
#include "core/file_sys/vfs_concat.h"
|
||||
#include "core/file_sys/vfs_offset.h"
|
||||
#include "core/file_sys/vfs_vector.h"
|
||||
|
@ -132,7 +133,7 @@ VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) {
|
|||
out = out->GetSubdirectories().front();
|
||||
}
|
||||
|
||||
return out;
|
||||
return std::make_shared<CachedVfsDirectory>(out);
|
||||
}
|
||||
|
||||
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue