summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-02-02 18:59:36 +0100
committerLioncash <mathew1800@gmail.com>2022-02-02 19:17:12 +0100
commitf785f73e9279dcb9cfdee93da694d7a1f55142ea (patch)
tree52edfca975d8df963ef38987ea1e99b7fb6f5553 /src/core/file_sys/vfs.h
parentgeneral: Move deleted copy/move constructor/assignment operators to public interface (diff)
downloadyuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar
yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar.gz
yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar.bz2
yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar.lz
yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar.xz
yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.tar.zst
yuzu-f785f73e9279dcb9cfdee93da694d7a1f55142ea.zip
Diffstat (limited to 'src/core/file_sys/vfs.h')
-rw-r--r--src/core/file_sys/vfs.h18
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 @@
#include <type_traits>
#include <vector>
+#include "common/common_funcs.h"
#include "common/common_types.h"
#include "core/file_sys/vfs_types.h"
@@ -29,8 +30,11 @@ enum class VfsEntryType {
// A class representing an abstract filesystem. A default implementation given the root VirtualDir
// is provided for convenience, but if the Vfs implementation has any additional state or
// functionality, they will need to override.
-class VfsFilesystem : NonCopyable {
+class VfsFilesystem {
public:
+ YUZU_NON_COPYABLE(VfsFilesystem);
+ YUZU_NON_MOVEABLE(VfsFilesystem);
+
explicit VfsFilesystem(VirtualDir root);
virtual ~VfsFilesystem();
@@ -77,8 +81,12 @@ protected:
};
// A class representing a file in an abstract filesystem.
-class VfsFile : NonCopyable {
+class VfsFile {
public:
+ YUZU_NON_COPYABLE(VfsFile);
+ YUZU_NON_MOVEABLE(VfsFile);
+
+ VfsFile() = default;
virtual ~VfsFile();
// Retrieves the file name.
@@ -176,8 +184,12 @@ public:
};
// A class representing a directory in an abstract filesystem.
-class VfsDirectory : NonCopyable {
+class VfsDirectory {
public:
+ YUZU_NON_COPYABLE(VfsDirectory);
+ YUZU_NON_MOVEABLE(VfsDirectory);
+
+ VfsDirectory() = default;
virtual ~VfsDirectory();
// Retrives the file located at path as if the current directory was root. Returns nullptr if