summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileSystemGCWii.h
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-07-30 17:12:44 +0200
committerJosJuice <josjuice@gmail.com>2017-06-13 22:41:02 +0200
commitf49b64caff2ebfeeaa80bc97d85de8b22f56e588 (patch)
tree693d715a36ad8e3d51d66f2d44267ed43951611c /Source/Core/DiscIO/FileSystemGCWii.h
parent7c45afecb2a157088591a94f8c008d74419243d1 (diff)
Filesystem: Rewrite finding file info by path for performance
Instead of calling GetPathFromFSTOffset for every file info, FindFileInfo now only looks at names in directories that are included in the path. For the common case of searching for "opening.bnr", this means that only root-level files and directories have to be searched through.
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.h')
-rw-r--r--Source/Core/DiscIO/FileSystemGCWii.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/FileSystemGCWii.h b/Source/Core/DiscIO/FileSystemGCWii.h
index 9c31c1bcc8..9380a68061 100644
--- a/Source/Core/DiscIO/FileSystemGCWii.h
+++ b/Source/Core/DiscIO/FileSystemGCWii.h
@@ -61,6 +61,7 @@ private:
u32 m_offset_shift;
std::vector<FileInfoGCWii> m_FileInfoVector;
+ const FileInfo* FindFileInfo(const std::string& path, size_t search_start_offset) const;
std::string GetStringFromOffset(u64 _Offset) const;
bool DetectFileSystem();
void InitFileSystem();