diff options
author | Subv <subv2112@gmail.com> | 2018-03-20 04:58:55 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-03-20 04:58:55 +0100 |
commit | a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c (patch) | |
tree | d31aeca8eacb374ab130dcd2449744cde2d5befd /src/core/file_sys/disk_filesystem.h | |
parent | FS: Support the file Append open mode. (diff) | |
download | yuzu-a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c.tar yuzu-a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c.tar.gz yuzu-a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c.tar.bz2 yuzu-a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c.tar.lz yuzu-a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c.tar.xz yuzu-a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c.tar.zst yuzu-a9ba2c2000d9f2e4c6018aa6fc1e754eca82f72c.zip |
Diffstat (limited to 'src/core/file_sys/disk_filesystem.h')
-rw-r--r-- | src/core/file_sys/disk_filesystem.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/core/file_sys/disk_filesystem.h b/src/core/file_sys/disk_filesystem.h index 53767b949..29383dbf7 100644 --- a/src/core/file_sys/disk_filesystem.h +++ b/src/core/file_sys/disk_filesystem.h @@ -59,8 +59,26 @@ private: class Disk_Directory : public DirectoryBackend { public: - u32 Read(const u32 count, Entry* entries) override; - bool Close() const override; + Disk_Directory(const std::string& path); + + ~Disk_Directory() override { + Close(); + } + + u64 Read(const u64 count, Entry* entries) override; + u64 GetEntryCount() const override; + + bool Close() const override { + return true; + } + +protected: + 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 |