Replaced recursive iteration to be sorted by name and depth

This commit is contained in:
KiritoDv
2025-01-30 10:35:05 -06:00
committed by Lywx
parent 18b85b04ee
commit 043fc76ebc
3 changed files with 34 additions and 3 deletions
+2 -2
View File
@@ -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;
}