diff options
| author | wwylele <wwylele@gmail.com> | 2016-10-16 23:09:36 +0800 |
|---|---|---|
| committer | wwylele <wwylele@gmail.com> | 2016-11-19 17:17:19 +0200 |
| commit | 0e754875d175bfec393a3f4c4f6ad73f45ed361f (patch) | |
| tree | 44aa53889179a678a0ec9b0015d83613913c5202 /src/core/file_sys/disk_archive.h | |
| parent | 75ee2f8c67022b0731e438b34fa65216531eccd1 (diff) | |
FileSys: remove Open from DirectoryBackend
Open should not be an interface exposed by Directory because it is the Archive thats implement the methed to open the directory. The service API of 3DS also implies this - Open is not a function of directory service, but is of FS main service
Diffstat (limited to 'src/core/file_sys/disk_archive.h')
| -rw-r--r-- | src/core/file_sys/disk_archive.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/file_sys/disk_archive.h b/src/core/file_sys/disk_archive.h index 0edd87954..c93c32eb2 100644 --- a/src/core/file_sys/disk_archive.h +++ b/src/core/file_sys/disk_archive.h @@ -75,13 +75,12 @@ protected: class DiskDirectory : public DirectoryBackend { public: - DiskDirectory(const DiskArchive& archive, const Path& path); + DiskDirectory(const std::string& path); ~DiskDirectory() override { Close(); } - bool Open() override; u32 Read(const u32 count, Entry* entries) override; bool Close() const override { @@ -89,7 +88,6 @@ public: } protected: - std::string path; u32 total_entries_in_directory; FileUtil::FSTEntry directory; |
