summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_real.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-06-13 23:16:10 +0200
committerLiam <byteslice@airmail.cc>2023-06-13 23:16:14 +0200
commitdbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e (patch)
tree4b64bd1ef436d64d2c21c9877a3b0562e66ecd03 /src/core/file_sys/vfs_real.h
parentvfs_real: lazily open files (diff)
downloadyuzu-dbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e.tar
yuzu-dbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e.tar.gz
yuzu-dbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e.tar.bz2
yuzu-dbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e.tar.lz
yuzu-dbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e.tar.xz
yuzu-dbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e.tar.zst
yuzu-dbbe2376687aa2bebb7f2e8bf74209b2dd08ea8e.zip
Diffstat (limited to 'src/core/file_sys/vfs_real.h')
-rw-r--r--src/core/file_sys/vfs_real.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/file_sys/vfs_real.h b/src/core/file_sys/vfs_real.h
index 48dc2698a..d8c900e33 100644
--- a/src/core/file_sys/vfs_real.h
+++ b/src/core/file_sys/vfs_real.h
@@ -3,6 +3,7 @@
#pragma once
+#include <map>
#include <string_view>
#include "common/intrusive_list.h"
#include "core/file_sys/mode.h"
@@ -41,6 +42,7 @@ public:
private:
using ReferenceListType = Common::IntrusiveListBaseTraits<FileReference>::ListType;
+ std::map<std::string, std::weak_ptr<VfsFile>, std::less<>> cache;
ReferenceListType open_references;
ReferenceListType closed_references;
size_t num_open_files{};