Moar filesystem
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -46,11 +46,13 @@ class FSService {
|
||||
|
||||
// Service commands
|
||||
void abnegateAccessRight(u32 messagePointer);
|
||||
void cardSlotIsInserted(u32 messagePointer);
|
||||
void createDirectory(u32 messagePointer);
|
||||
void createExtSaveData(u32 messagePointer);
|
||||
void createFile(u32 messagePointer);
|
||||
void closeArchive(u32 messagePointer);
|
||||
void controlArchive(u32 messagePointer);
|
||||
void deleteDirectory(u32 messagePointer);
|
||||
void deleteExtSaveData(u32 messagePointer);
|
||||
void deleteFile(u32 messagePointer);
|
||||
void formatSaveData(u32 messagePointer);
|
||||
|
||||
Reference in New Issue
Block a user