[FS] Add CreateDirectory for MK7 (hopefully not broken)

This commit is contained in:
wheremyfoodat 2023-04-26 03:04:45 +03:00
parent 1c3f3f8da9
commit f39069813a
5 changed files with 58 additions and 1 deletions

View file

@ -208,6 +208,11 @@ public:
return FormatInfo{ .size = 0, .numOfDirectories = 0, .numOfFiles = 0, .duplicateData = false };
}
virtual FSResult createDirectory(const FSPath& path) {
Helpers::panic("Unimplemented CreateDirectory for %s archive", name().c_str());
return FSResult::AlreadyExists;
}
// Returns nullopt if opening the file failed, otherwise returns a file descriptor to it (nullptr if none is needed)
virtual FileDescriptor openFile(const FSPath& path, const FilePerms& perms) = 0;