mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
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.
This commit is contained in:
parent
7c45afecb2
commit
f49b64caff
2 changed files with 59 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue