mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
17 lines
No EOL
656 B
C++
17 lines
No EOL
656 B
C++
#pragma once
|
|
#include "archive_base.hpp"
|
|
|
|
class SDMCArchive : public ArchiveBase {
|
|
public:
|
|
SDMCArchive(Memory& mem) : ArchiveBase(mem) {}
|
|
|
|
u64 getFreeBytes() override { Helpers::panic("SDMC::GetFreeBytes unimplemented"); return 0; }
|
|
std::string name() override { return "SDMC"; }
|
|
|
|
FSResult createFile(const FSPath& path, u64 size) override;
|
|
FSResult deleteFile(const FSPath& path) override;
|
|
|
|
Rust::Result<ArchiveBase*, FSResult> openArchive(const FSPath& path) override;
|
|
FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override;
|
|
std::optional<u32> readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override;
|
|
}; |