summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-12 22:37:38 +0200
committerLioncash <mathew1800@gmail.com>2018-08-12 22:55:40 +0200
commitcf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a (patch)
treec217767ae3450b79127a6768b582a08211b2d3a9 /src/core/file_sys/vfs.h
parentMerge pull request #1025 from ogniK5377/bad-cast (diff)
downloadyuzu-cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a.tar
yuzu-cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a.tar.gz
yuzu-cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a.tar.bz2
yuzu-cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a.tar.lz
yuzu-cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a.tar.xz
yuzu-cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a.tar.zst
yuzu-cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a.zip
Diffstat (limited to 'src/core/file_sys/vfs.h')
-rw-r--r--src/core/file_sys/vfs.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h
index 141a053ce..3bbc361ba 100644
--- a/src/core/file_sys/vfs.h
+++ b/src/core/file_sys/vfs.h
@@ -15,9 +15,9 @@
namespace FileSys {
-struct VfsFilesystem;
-struct VfsFile;
-struct VfsDirectory;
+class VfsDirectory;
+class VfsFile;
+class VfsFilesystem;
// Convenience typedefs to use Vfs* interfaces
using VirtualFilesystem = std::shared_ptr<VfsFilesystem>;
@@ -34,7 +34,8 @@ 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.
-struct VfsFilesystem : NonCopyable {
+class VfsFilesystem : NonCopyable {
+public:
VfsFilesystem(VirtualDir root);
virtual ~VfsFilesystem();
@@ -81,7 +82,8 @@ protected:
};
// A class representing a file in an abstract filesystem.
-struct VfsFile : NonCopyable {
+class VfsFile : NonCopyable {
+public:
virtual ~VfsFile();
// Retrieves the file name.
@@ -179,7 +181,8 @@ struct VfsFile : NonCopyable {
};
// A class representing a directory in an abstract filesystem.
-struct VfsDirectory : NonCopyable {
+class VfsDirectory : NonCopyable {
+public:
virtual ~VfsDirectory();
// Retrives the file located at path as if the current directory was root. Returns nullptr if
@@ -295,7 +298,8 @@ protected:
// A convenience partial-implementation of VfsDirectory that stubs out methods that should only work
// if writable. This is to avoid redundant empty methods everywhere.
-struct ReadOnlyVfsDirectory : public VfsDirectory {
+class ReadOnlyVfsDirectory : public VfsDirectory {
+public:
bool IsWritable() const override;
bool IsReadable() const override;
std::shared_ptr<VfsDirectory> CreateSubdirectory(std::string_view name) override;