diff options
| author | 2022-02-02 12:59:36 -0500 | |
|---|---|---|
| committer | 2022-02-02 13:17:12 -0500 | |
| commit | f785f73e9279dcb9cfdee93da694d7a1f55142ea (patch) | |
| tree | 52edfca975d8df963ef38987ea1e99b7fb6f5553 /src/core/file_sys | |
| parent | general: Move deleted copy/move constructor/assignment operators to public in... (diff) | |
| download | yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar.gz yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar.xz yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.zip | |
general: Replace NonCopyable struct with equivalents
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/vfs.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h index 3e625fad6..1b9365853 100644 --- a/src/core/file_sys/vfs.h +++ b/src/core/file_sys/vfs.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <type_traits> | 12 | #include <type_traits> |
| 13 | #include <vector> | 13 | #include <vector> |
| 14 | 14 | ||
| 15 | #include "common/common_funcs.h" | ||
| 15 | #include "common/common_types.h" | 16 | #include "common/common_types.h" |
| 16 | #include "core/file_sys/vfs_types.h" | 17 | #include "core/file_sys/vfs_types.h" |
| 17 | 18 | ||
| @@ -29,8 +30,11 @@ enum class VfsEntryType { | |||
| 29 | // A class representing an abstract filesystem. A default implementation given the root VirtualDir | 30 | // A class representing an abstract filesystem. A default implementation given the root VirtualDir |
| 30 | // is provided for convenience, but if the Vfs implementation has any additional state or | 31 | // is provided for convenience, but if the Vfs implementation has any additional state or |
| 31 | // functionality, they will need to override. | 32 | // functionality, they will need to override. |
| 32 | class VfsFilesystem : NonCopyable { | 33 | class VfsFilesystem { |
| 33 | public: | 34 | public: |
| 35 | YUZU_NON_COPYABLE(VfsFilesystem); | ||
| 36 | YUZU_NON_MOVEABLE(VfsFilesystem); | ||
| 37 | |||
| 34 | explicit VfsFilesystem(VirtualDir root); | 38 | explicit VfsFilesystem(VirtualDir root); |
| 35 | virtual ~VfsFilesystem(); | 39 | virtual ~VfsFilesystem(); |
| 36 | 40 | ||
| @@ -77,8 +81,12 @@ protected: | |||
| 77 | }; | 81 | }; |
| 78 | 82 | ||
| 79 | // A class representing a file in an abstract filesystem. | 83 | // A class representing a file in an abstract filesystem. |
| 80 | class VfsFile : NonCopyable { | 84 | class VfsFile { |
| 81 | public: | 85 | public: |
| 86 | YUZU_NON_COPYABLE(VfsFile); | ||
| 87 | YUZU_NON_MOVEABLE(VfsFile); | ||
| 88 | |||
| 89 | VfsFile() = default; | ||
| 82 | virtual ~VfsFile(); | 90 | virtual ~VfsFile(); |
| 83 | 91 | ||
| 84 | // Retrieves the file name. | 92 | // Retrieves the file name. |
| @@ -176,8 +184,12 @@ public: | |||
| 176 | }; | 184 | }; |
| 177 | 185 | ||
| 178 | // A class representing a directory in an abstract filesystem. | 186 | // A class representing a directory in an abstract filesystem. |
| 179 | class VfsDirectory : NonCopyable { | 187 | class VfsDirectory { |
| 180 | public: | 188 | public: |
| 189 | YUZU_NON_COPYABLE(VfsDirectory); | ||
| 190 | YUZU_NON_MOVEABLE(VfsDirectory); | ||
| 191 | |||
| 192 | VfsDirectory() = default; | ||
| 181 | virtual ~VfsDirectory(); | 193 | virtual ~VfsDirectory(); |
| 182 | 194 | ||
| 183 | // Retrives the file located at path as if the current directory was root. Returns nullptr if | 195 | // Retrives the file located at path as if the current directory was root. Returns nullptr if |