mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 13:25:51 +12:00
Start implementing SystemSaveData
This commit is contained in:
parent
eade124f00
commit
c48f8327c6
6 changed files with 64 additions and 2 deletions
38
include/fs/archive_system_save_data.hpp
Normal file
38
include/fs/archive_system_save_data.hpp
Normal file
|
@ -0,0 +1,38 @@
|
|||
#pragma once
|
||||
#include "archive_base.hpp"
|
||||
|
||||
class SystemSaveDataArchive : public ArchiveBase {
|
||||
public:
|
||||
SystemSaveDataArchive(Memory& mem) : ArchiveBase(mem) {}
|
||||
|
||||
u64 getFreeBytes() override {
|
||||
Helpers::panic("Unimplemented GetFreeBytes for SystemSaveData archive");
|
||||
return 32_MB;
|
||||
}
|
||||
|
||||
std::string name() override { return "SystemSaveData"; }
|
||||
|
||||
//HorizonResult createDirectory(const FSPath& path) override;
|
||||
HorizonResult createFile(const FSPath& path, u64 size) override {
|
||||
Helpers::panic("Unimplemented CreateFile for SystemSaveData archive");
|
||||
return Result::Success;
|
||||
};
|
||||
|
||||
HorizonResult deleteFile(const FSPath& path) override {
|
||||
Helpers::panic("Unimplemented DeleteFile for SystemSaveData archive");
|
||||
return Result::Success;
|
||||
};
|
||||
|
||||
Rust::Result<ArchiveBase*, HorizonResult> openArchive(const FSPath& path) override;
|
||||
//Rust::Result<DirectorySession, HorizonResult> openDirectory(const FSPath& path) override;
|
||||
|
||||
FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override {
|
||||
Helpers::panic("Unimplemented OpenFile for SystemSaveData archive");
|
||||
return {};
|
||||
}
|
||||
|
||||
std::optional<u32> readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override {
|
||||
Helpers::panic("Unimplemented ReadFile for SystemSaveData archive");
|
||||
return {};
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue