summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2019-01-19 12:56:16 -0500
committerGravatar GitHub2019-01-19 12:56:16 -0500
commitd0e4e43e3ccbc512abc6593eff4d92e5aa08becb (patch)
tree1d99af2ca9d59c3c8c123be29495aabb4e6e5866 /src/core
parentMerge pull request #2020 from otaviopace/remove-spaces (diff)
parentfile_sys/directory: Remove unused DirectoryBackend class (diff)
downloadyuzu-d0e4e43e3ccbc512abc6593eff4d92e5aa08becb.tar.gz
yuzu-d0e4e43e3ccbc512abc6593eff4d92e5aa08becb.tar.xz
yuzu-d0e4e43e3ccbc512abc6593eff4d92e5aa08becb.zip
Merge pull request #2036 from lioncash/unused-class
file_sys/directory: Remove unused DirectoryBackend class
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/directory.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/core/file_sys/directory.h b/src/core/file_sys/directory.h
index 6690aa575..7b5c509fb 100644
--- a/src/core/file_sys/directory.h
+++ b/src/core/file_sys/directory.h
@@ -39,27 +39,4 @@ static_assert(sizeof(Entry) == 0x310, "Directory Entry struct isn't exactly 0x31
39static_assert(offsetof(Entry, type) == 0x304, "Wrong offset for type in Entry."); 39static_assert(offsetof(Entry, type) == 0x304, "Wrong offset for type in Entry.");
40static_assert(offsetof(Entry, file_size) == 0x308, "Wrong offset for file_size in Entry."); 40static_assert(offsetof(Entry, file_size) == 0x308, "Wrong offset for file_size in Entry.");
41 41
42class DirectoryBackend : NonCopyable {
43public:
44 DirectoryBackend() {}
45 virtual ~DirectoryBackend() {}
46
47 /**
48 * List files contained in the directory
49 * @param count Number of entries to return at once in entries
50 * @param entries Buffer to read data into
51 * @return Number of entries listed
52 */
53 virtual u64 Read(const u64 count, Entry* entries) = 0;
54
55 /// Returns the number of entries still left to read.
56 virtual u64 GetEntryCount() const = 0;
57
58 /**
59 * Close the directory
60 * @return true if the directory closed correctly
61 */
62 virtual bool Close() const = 0;
63};
64
65} // namespace FileSys 42} // namespace FileSys