summaryrefslogtreecommitdiff
path: root/src/core/file_sys/filesystem.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-03-23 20:48:26 -0400
committerGravatar GitHub2018-03-23 20:48:26 -0400
commita397a9e9a4bad1ed03229082408b7fa424295530 (patch)
tree3f4766c0bc490d10cf89377475c23fa237e2bba2 /src/core/file_sys/filesystem.h
parentMerge pull request #268 from mailwl/ssl (diff)
parentFS: Move the file open mode calculation to a separate function. (diff)
downloadyuzu-a397a9e9a4bad1ed03229082408b7fa424295530.tar.gz
yuzu-a397a9e9a4bad1ed03229082408b7fa424295530.tar.xz
yuzu-a397a9e9a4bad1ed03229082408b7fa424295530.zip
Merge pull request #255 from Subv/sd_card
FS: Implemented access to the SD card
Diffstat (limited to 'src/core/file_sys/filesystem.h')
-rw-r--r--src/core/file_sys/filesystem.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/file_sys/filesystem.h b/src/core/file_sys/filesystem.h
index 94ad2abf2..399427ca2 100644
--- a/src/core/file_sys/filesystem.h
+++ b/src/core/file_sys/filesystem.h
@@ -27,7 +27,7 @@ enum LowPathType : u32 {
27 Wchar = 4, 27 Wchar = 4,
28}; 28};
29 29
30enum EntryType : u32 { 30enum EntryType : u8 {
31 Directory = 0, 31 Directory = 0,
32 File = 1, 32 File = 1,
33}; 33};
@@ -35,6 +35,7 @@ enum EntryType : u32 {
35enum class Mode : u32 { 35enum class Mode : u32 {
36 Read = 1, 36 Read = 1,
37 Write = 2, 37 Write = 2,
38 Append = 4,
38}; 39};
39 40
40class Path { 41class Path {
@@ -103,7 +104,7 @@ public:
103 * @param path Path relative to the archive 104 * @param path Path relative to the archive
104 * @return Result of the operation 105 * @return Result of the operation
105 */ 106 */
106 virtual ResultCode CreateDirectory(const Path& path) const = 0; 107 virtual ResultCode CreateDirectory(const std::string& path) const = 0;
107 108
108 /** 109 /**
109 * Delete a directory specified by its path 110 * Delete a directory specified by its path
@@ -149,7 +150,8 @@ public:
149 * @param path Path relative to the archive 150 * @param path Path relative to the archive
150 * @return Opened directory, or error code 151 * @return Opened directory, or error code
151 */ 152 */
152 virtual ResultVal<std::unique_ptr<DirectoryBackend>> OpenDirectory(const Path& path) const = 0; 153 virtual ResultVal<std::unique_ptr<DirectoryBackend>> OpenDirectory(
154 const std::string& path) const = 0;
153 155
154 /** 156 /**
155 * Get the free space 157 * Get the free space