From 04c90c395d27e6bc205fb2d933ced50e70c1841a Mon Sep 17 00:00:00 2001 From: archshift Date: Tue, 28 Oct 2014 22:52:56 -0700 Subject: Added CreateDirectory function to service/fs.cpp, and in Archive. --- src/core/file_sys/archive_romfs.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/core/file_sys/archive_romfs.cpp') diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index f101fc729..cc759faa8 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp @@ -33,6 +33,16 @@ std::unique_ptr Archive_RomFS::OpenFile(const std::string& path, const Mod return std::unique_ptr(new File_RomFS); } +/** + * Create a directory specified by its path + * @param path Path relative to the archive + * @return Whether the directory could be created + */ +bool Archive_RomFS::CreateDirectory(const std::string& path) const { + ERROR_LOG(FILESYS, "Attempted to create a directory in ROMFS."); + return false; +}; + /** * Open a directory specified by its path * @param path Path relative to the archive -- cgit v1.2.3