diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2025-01-29 21:02:51 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-01-30 10:35:05 -0600 |
| commit | 043fc76ebc8ff401f5d121660bf58497c71dff2c (patch) | |
| tree | 64bc3219a00794faf3aac88fd90435c25cd1256d /src/Companion.cpp | |
| parent | 18b85b04eea0e0fede4f9410fa7cdd87618029f1 (diff) | |
Replaced recursive iteration to be sorted by name and depth
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 2344070..4a7a3fc 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -1195,7 +1195,7 @@ void Companion::Process() { vWriter.Write((uint32_t) 0); } - for (const auto & entry : fs::recursive_directory_iterator(this->gAssetPath)){ + for (const auto & entry : Torch::getRecursiveEntries(this->gAssetPath)){ if(entry.is_directory()) { continue; } @@ -1258,7 +1258,7 @@ void Companion::Pack(const std::string& folder, const std::string& output, const auto start = duration_cast<milliseconds>(system_clock::now().time_since_epoch()); std::unordered_map<std::string, std::vector<char>> files; - for (const auto & entry : fs::recursive_directory_iterator(folder)){ + for (const auto & entry : Torch::getRecursiveEntries(folder)){ if(entry.is_directory()) { continue; } |
