mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add io::directory_iterator
This commit is contained in:
parent
c3066eebd3
commit
347d76870a
13 changed files with 182 additions and 64 deletions
|
|
@ -129,8 +129,7 @@ void ContentPack::scanFolder(
|
|||
if (!io::is_directory(folder)) {
|
||||
return;
|
||||
}
|
||||
for (const auto& entry : fs::directory_iterator(io::resolve(folder))) {
|
||||
io::path packFolder = folder / entry.path().filename().u8string();
|
||||
for (const auto& packFolder : io::directory_iterator(folder)) {
|
||||
if (!io::is_directory(packFolder)) continue;
|
||||
if (!is_pack(packFolder)) continue;
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue