From 043fc76ebc8ff401f5d121660bf58497c71dff2c Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Wed, 29 Jan 2025 21:02:51 -0600 Subject: Replaced recursive iteration to be sorted by name and depth --- src/Companion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Companion.cpp') 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(system_clock::now().time_since_epoch()); std::unordered_map> files; - for (const auto & entry : fs::recursive_directory_iterator(folder)){ + for (const auto & entry : Torch::getRecursiveEntries(folder)){ if(entry.is_directory()) { continue; } -- cgit v1.2.3