FS: Fix directory listing

Previously, the host directory iterator stopped advancing at the last listed
entry (instead of right after it).
This commit is contained in:
Tony Wasserka 2024-12-10 11:50:42 +01:00
parent c62e9c16f0
commit c65c3c7192

View file

@ -533,8 +533,9 @@ public:
// auto it = iter;
uint32_t actual_entries = 0;
for (auto& entry : iter) {
// TODO: Merge with Entry defined by platform
while (iter != std::filesystem::directory_iterator{}) {
auto entry = *iter++;
// TODO: Merge with Entry defined by platform
struct Entry {
uint16_t name_utf16[0x20c / 2];
uint8_t short_name[0xa]; // short 8.3 filename without extension