Moar filesystem

This commit is contained in:
wheremyfoodat 2023-09-14 22:22:18 +03:00
parent 712be4ce72
commit 88eebbcbae
7 changed files with 124 additions and 9 deletions

View file

@ -6,7 +6,7 @@ class SystemSaveDataArchive : public ArchiveBase {
SystemSaveDataArchive(Memory& mem) : ArchiveBase(mem) {}
u64 getFreeBytes() override {
Helpers::panic("Unimplemented GetFreeBytes for SystemSaveData archive");
Helpers::warn("Unimplemented GetFreeBytes for SystemSaveData archive");
return 32_MB;
}
@ -14,14 +14,10 @@ class SystemSaveDataArchive : public ArchiveBase {
//HorizonResult createDirectory(const FSPath& path) override;
HorizonResult createFile(const FSPath& path, u64 size) override;
HorizonResult deleteFile(const FSPath& path) override {
Helpers::panic("Unimplemented DeleteFile for SystemSaveData archive");
return Result::Success;
};
HorizonResult deleteFile(const FSPath& path) override;
Rust::Result<ArchiveBase*, HorizonResult> openArchive(const FSPath& path) override;
//Rust::Result<DirectorySession, HorizonResult> openDirectory(const FSPath& path) override;
Rust::Result<DirectorySession, HorizonResult> openDirectory(const FSPath& path) override;
FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override;