diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-09-29 10:34:37 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-10-06 19:58:43 +0200 |
commit | fbd72fd6bf0f02a13be207c9d61f630c594e3156 (patch) | |
tree | 766620c93a936e767cc073382573660041c2e193 /src/core/file_sys/directory_sdmc.h | |
parent | FileSys: Add static asserts for the Directory struct, and fix its fields position. (diff) | |
download | yuzu-fbd72fd6bf0f02a13be207c9d61f630c594e3156.tar yuzu-fbd72fd6bf0f02a13be207c9d61f630c594e3156.tar.gz yuzu-fbd72fd6bf0f02a13be207c9d61f630c594e3156.tar.bz2 yuzu-fbd72fd6bf0f02a13be207c9d61f630c594e3156.tar.lz yuzu-fbd72fd6bf0f02a13be207c9d61f630c594e3156.tar.xz yuzu-fbd72fd6bf0f02a13be207c9d61f630c594e3156.tar.zst yuzu-fbd72fd6bf0f02a13be207c9d61f630c594e3156.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/directory_sdmc.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/file_sys/directory_sdmc.h b/src/core/file_sys/directory_sdmc.h index 0bc6c9eff..cb8d32fda 100644 --- a/src/core/file_sys/directory_sdmc.h +++ b/src/core/file_sys/directory_sdmc.h @@ -37,9 +37,12 @@ public: bool Close() const override; private: - u32 entry_count; - u32 current_entry; - FileUtil::FSTEntry entry; + u32 total_entries_in_directory; + FileUtil::FSTEntry directory; + + // We need to remember the last entry we returned, so a subsequent call to Read will continue + // from the next one. This iterator will always point to the next unread entry. + std::vector<FileUtil::FSTEntry>::iterator children_iterator; }; } // namespace FileSys |