summaryrefslogtreecommitdiff
path: root/src/core/file_sys
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
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')
-rw-r--r--src/core/file_sys/content_archive.h2
-rw-r--r--src/core/file_sys/registered_cache.h2
-rw-r--r--src/core/file_sys/vfs.h16
-rw-r--r--src/core/file_sys/vfs_real.h2
4 files changed, 11 insertions, 11 deletions
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h
index 7fdc45ea7..20f524f80 100644
--- a/src/core/file_sys/content_archive.h
+++ b/src/core/file_sys/content_archive.h
@@ -93,7 +93,7 @@ inline bool IsDirectoryLogoPartition(const VirtualDir& pfs) {
93 pfs->GetFile("StartupMovie.gif") != nullptr; 93 pfs->GetFile("StartupMovie.gif") != nullptr;
94} 94}
95 95
96// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) conatiner. 96// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) container.
97// After construction, use GetStatus to determine if the file is valid and ready to be used. 97// After construction, use GetStatus to determine if the file is valid and ready to be used.
98class NCA : public ReadOnlyVfsDirectory { 98class NCA : public ReadOnlyVfsDirectory {
99public: 99public:
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h
index 587f8cae8..bd7f53eaf 100644
--- a/src/core/file_sys/registered_cache.h
+++ b/src/core/file_sys/registered_cache.h
@@ -162,7 +162,7 @@ public:
162 InstallResult InstallEntry(const NSP& nsp, bool overwrite_if_exists = false, 162 InstallResult InstallEntry(const NSP& nsp, bool overwrite_if_exists = false,
163 const VfsCopyFunction& copy = &VfsRawCopy); 163 const VfsCopyFunction& copy = &VfsRawCopy);
164 164
165 // Due to the fact that we must use Meta-type NCAs to determine the existance of files, this 165 // Due to the fact that we must use Meta-type NCAs to determine the existence of files, this
166 // poses quite a challenge. Instead of creating a new meta NCA for this file, yuzu will create a 166 // poses quite a challenge. Instead of creating a new meta NCA for this file, yuzu will create a
167 // dir inside the NAND called 'yuzu_meta' and store the raw CNMT there. 167 // dir inside the NAND called 'yuzu_meta' and store the raw CNMT there.
168 // TODO(DarkLordZach): Author real meta-type NCAs and install those. 168 // TODO(DarkLordZach): Author real meta-type NCAs and install those.
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
diff --git a/src/core/file_sys/vfs_real.h b/src/core/file_sys/vfs_real.h
index acde1ac89..b92c84316 100644
--- a/src/core/file_sys/vfs_real.h
+++ b/src/core/file_sys/vfs_real.h
@@ -38,7 +38,7 @@ private:
38 boost::container::flat_map<std::string, std::weak_ptr<Common::FS::IOFile>> cache; 38 boost::container::flat_map<std::string, std::weak_ptr<Common::FS::IOFile>> cache;
39}; 39};
40 40
41// An implmentation of VfsFile that represents a file on the user's computer. 41// An implementation of VfsFile that represents a file on the user's computer.
42class RealVfsFile : public VfsFile { 42class RealVfsFile : public VfsFile {
43 friend class RealVfsDirectory; 43 friend class RealVfsDirectory;
44 friend class RealVfsFilesystem; 44 friend class RealVfsFilesystem;