diff options
| author | 2018-09-23 21:50:16 -0400 | |
|---|---|---|
| committer | 2018-09-23 21:50:20 -0400 | |
| commit | b3c2ec362bbbdd89da9c0aa84b425717f5e3d351 (patch) | |
| tree | d3f4e621532f1f280f94bac4e6d071707aabbd35 /src/core/file_sys/vfs.h | |
| parent | qt: Add UI elements for LayeredFS and related tools (diff) | |
| download | yuzu-b3c2ec362bbbdd89da9c0aa84b425717f5e3d351.tar.gz yuzu-b3c2ec362bbbdd89da9c0aa84b425717f5e3d351.tar.xz yuzu-b3c2ec362bbbdd89da9c0aa84b425717f5e3d351.zip | |
fsmitm: Cleanup and modernize fsmitm port
Diffstat (limited to 'src/core/file_sys/vfs.h')
| -rw-r--r-- | src/core/file_sys/vfs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h index 6aec4c164..cea4aa8b8 100644 --- a/src/core/file_sys/vfs.h +++ b/src/core/file_sys/vfs.h | |||
| @@ -268,7 +268,7 @@ public: | |||
| 268 | 268 | ||
| 269 | // Gets all of the entries directly in the directory (files and dirs), returning a map between | 269 | // Gets all of the entries directly in the directory (files and dirs), returning a map between |
| 270 | // item name -> type. | 270 | // item name -> type. |
| 271 | virtual std::map<std::string, VfsEntryType> GetEntries() const; | 271 | virtual std::map<std::string, VfsEntryType, std::less<>> GetEntries() const; |
| 272 | 272 | ||
| 273 | // Interprets the file with name file instead as a directory of type directory. | 273 | // Interprets the file with name file instead as a directory of type directory. |
| 274 | // The directory must have a constructor that takes a single argument of type | 274 | // The directory must have a constructor that takes a single argument of type |
| @@ -323,6 +323,9 @@ bool DeepEquals(const VirtualFile& file1, const VirtualFile& file2, size_t block | |||
| 323 | // directory of src/dest. | 323 | // directory of src/dest. |
| 324 | bool VfsRawCopy(const VirtualFile& src, const VirtualFile& dest, size_t block_size = 0x1000); | 324 | bool VfsRawCopy(const VirtualFile& src, const VirtualFile& dest, size_t block_size = 0x1000); |
| 325 | 325 | ||
| 326 | // A method that performs a similar function to VfsRawCopy above, but instead copies entire | ||
| 327 | // directories. It suffers the same performance penalties as above and an implementation-specific | ||
| 328 | // Copy should always be preferred. | ||
| 326 | bool VfsRawCopyD(const VirtualDir& src, const VirtualDir& dest, size_t block_size = 0x1000); | 329 | bool VfsRawCopyD(const VirtualDir& src, const VirtualDir& dest, size_t block_size = 0x1000); |
| 327 | 330 | ||
| 328 | // Checks if the directory at path relative to rel exists. If it does, returns that. If it does not | 331 | // Checks if the directory at path relative to rel exists. If it does, returns that. If it does not |