From 0ccaaafca30c245330a62bd39519fb05720a0bf2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 30 Nov 2018 23:44:08 -0500 Subject: file_sys: Override missing mutating functions to be stubbed out for ReadOnlyVfsDirectory by default Ensures that read only indeed means read only. --- src/core/file_sys/vfs.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/core/file_sys/vfs.cpp') diff --git a/src/core/file_sys/vfs.cpp b/src/core/file_sys/vfs.cpp index a4a3236f4..e33327ef0 100644 --- a/src/core/file_sys/vfs.cpp +++ b/src/core/file_sys/vfs.cpp @@ -453,10 +453,30 @@ std::shared_ptr ReadOnlyVfsDirectory::CreateFile(std::string_view name) return nullptr; } +std::shared_ptr ReadOnlyVfsDirectory::CreateFileAbsolute(std::string_view path) { + return nullptr; +} + +std::shared_ptr ReadOnlyVfsDirectory::CreateFileRelative(std::string_view path) { + return nullptr; +} + +std::shared_ptr ReadOnlyVfsDirectory::CreateDirectoryAbsolute(std::string_view path) { + return nullptr; +} + +std::shared_ptr ReadOnlyVfsDirectory::CreateDirectoryRelative(std::string_view path) { + return nullptr; +} + bool ReadOnlyVfsDirectory::DeleteSubdirectory(std::string_view name) { return false; } +bool ReadOnlyVfsDirectory::DeleteSubdirectoryRecursive(std::string_view name) { + return false; +} + bool ReadOnlyVfsDirectory::CleanSubdirectoryRecursive(std::string_view name) { return false; } -- cgit v1.2.3