Common: Make recursive FileUtil functions take a maximum recursion
Fixes #1115. Also improves the performances of DiskArchive’s directory implementation a lot, simply by not going through the entire tree instead of just listing the first level files. Thanks to JayRoxFox for rebasing this on current master!
This commit is contained in:
parent
51ee2d2eb1
commit
8ab6f26c09
4 changed files with 43 additions and 30 deletions
|
@ -212,5 +212,5 @@ private:
|
|||
bool deep_scan;
|
||||
std::atomic_bool stop_processing;
|
||||
|
||||
void AddFstEntriesToGameList(const std::string& dir_path, bool deep_scan);
|
||||
void AddFstEntriesToGameList(const std::string& dir_path, unsigned int recursion = 0);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue