summaryrefslogtreecommitdiff
path: root/src/core/file_sys/vfs.h
diff options
context:
space:
mode:
authorGravatar Liam2023-03-11 22:10:38 -0500
committerGravatar Liam2023-03-12 11:33:01 -0400
commit600f325d87e42f856da58c42a5280f098ebb6e8c (patch)
tree75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/core/file_sys/vfs.h
parentgeneral: use codespell to identify spelling mistakes (diff)
downloadyuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip
general: fix spelling mistakes
Diffstat (limited to 'src/core/file_sys/vfs.h')
-rw-r--r--src/core/file_sys/vfs.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h
index 8fc1738a4..a93e21f67 100644
--- a/src/core/file_sys/vfs.h
+++ b/src/core/file_sys/vfs.h
@@ -45,7 +45,7 @@ public:
45 // Return whether or not the user has write permission on this filesystem. 45 // Return whether or not the user has write permission on this filesystem.
46 virtual bool IsWritable() const; 46 virtual bool IsWritable() const;
47 47
48 // Determine if the entry at path is non-existant, a file, or a directory. 48 // Determine if the entry at path is non-existent, a file, or a directory.
49 virtual VfsEntryType GetEntryType(std::string_view path) const; 49 virtual VfsEntryType GetEntryType(std::string_view path) const;
50 50
51 // Opens the file with path relative to root. If it doesn't exist, returns nullptr. 51 // Opens the file with path relative to root. If it doesn't exist, returns nullptr.
@@ -58,7 +58,7 @@ public:
58 // Moves the file from old_path to new_path, returning the moved file on success and nullptr on 58 // Moves the file from old_path to new_path, returning the moved file on success and nullptr on
59 // failure. 59 // failure.
60 virtual VirtualFile MoveFile(std::string_view old_path, std::string_view new_path); 60 virtual VirtualFile MoveFile(std::string_view old_path, std::string_view new_path);
61 // Deletes the file with path relative to root, returing true on success. 61 // Deletes the file with path relative to root, returning true on success.
62 virtual bool DeleteFile(std::string_view path); 62 virtual bool DeleteFile(std::string_view path);
63 63
64 // Opens the directory with path relative to root. If it doesn't exist, returns nullptr. 64 // Opens the directory with path relative to root. If it doesn't exist, returns nullptr.
@@ -71,7 +71,7 @@ public:
71 // Moves the directory from old_path to new_path, returning the moved directory on success and 71 // Moves the directory from old_path to new_path, returning the moved directory on success and
72 // nullptr on failure. 72 // nullptr on failure.
73 virtual VirtualDir MoveDirectory(std::string_view old_path, std::string_view new_path); 73 virtual VirtualDir MoveDirectory(std::string_view old_path, std::string_view new_path);
74 // Deletes the directory with path relative to root, returing true on success. 74 // Deletes the directory with path relative to root, returning true on success.
75 virtual bool DeleteDirectory(std::string_view path); 75 virtual bool DeleteDirectory(std::string_view path);
76 76
77protected: 77protected:
@@ -144,7 +144,7 @@ public:
144 return Read(reinterpret_cast<u8*>(data), sizeof(T), offset); 144 return Read(reinterpret_cast<u8*>(data), sizeof(T), offset);
145 } 145 }
146 146
147 // Writes exactly one byte to offset in file and retuns whether or not the byte was written 147 // Writes exactly one byte to offset in file and returns whether or not the byte was written
148 // successfully. 148 // successfully.
149 virtual bool WriteByte(u8 data, std::size_t offset = 0); 149 virtual bool WriteByte(u8 data, std::size_t offset = 0);
150 // Writes a vector of bytes to offset in file and returns the number of bytes successfully 150 // Writes a vector of bytes to offset in file and returns the number of bytes successfully
@@ -191,13 +191,13 @@ public:
191 VfsDirectory() = default; 191 VfsDirectory() = default;
192 virtual ~VfsDirectory(); 192 virtual ~VfsDirectory();
193 193
194 // Retrives the file located at path as if the current directory was root. Returns nullptr if 194 // Retrieves the file located at path as if the current directory was root. Returns nullptr if
195 // not found. 195 // not found.
196 virtual VirtualFile GetFileRelative(std::string_view path) const; 196 virtual VirtualFile GetFileRelative(std::string_view path) const;
197 // Calls GetFileRelative(path) on the root of the current directory. 197 // Calls GetFileRelative(path) on the root of the current directory.
198 virtual VirtualFile GetFileAbsolute(std::string_view path) const; 198 virtual VirtualFile GetFileAbsolute(std::string_view path) const;
199 199
200 // Retrives the directory located at path as if the current directory was root. Returns nullptr 200 // Retrieves the directory located at path as if the current directory was root. Returns nullptr
201 // if not found. 201 // if not found.
202 virtual VirtualDir GetDirectoryRelative(std::string_view path) const; 202 virtual VirtualDir GetDirectoryRelative(std::string_view path) const;
203 // Calls GetDirectoryRelative(path) on the root of the current directory. 203 // Calls GetDirectoryRelative(path) on the root of the current directory.
@@ -205,7 +205,7 @@ public:
205 205
206 // Returns a vector containing all of the files in this directory. 206 // Returns a vector containing all of the files in this directory.
207 virtual std::vector<VirtualFile> GetFiles() const = 0; 207 virtual std::vector<VirtualFile> GetFiles() const = 0;
208 // Returns the file with filename matching name. Returns nullptr if directory dosen't have a 208 // Returns the file with filename matching name. Returns nullptr if directory doesn't have a
209 // file with name. 209 // file with name.
210 virtual VirtualFile GetFile(std::string_view name) const; 210 virtual VirtualFile GetFile(std::string_view name) const;
211 211
@@ -214,7 +214,7 @@ public:
214 214
215 // Returns a vector containing all of the subdirectories in this directory. 215 // Returns a vector containing all of the subdirectories in this directory.
216 virtual std::vector<VirtualDir> GetSubdirectories() const = 0; 216 virtual std::vector<VirtualDir> GetSubdirectories() const = 0;
217 // Returns the directory with name matching name. Returns nullptr if directory dosen't have a 217 // Returns the directory with name matching name. Returns nullptr if directory doesn't have a
218 // directory with name. 218 // directory with name.
219 virtual VirtualDir GetSubdirectory(std::string_view name) const; 219 virtual VirtualDir GetSubdirectory(std::string_view name) const;
220 220