mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 15:15:40 +12:00
This should clean up all HLE errorcode in the codebase. I didn't removed Rust::Result as this should be a cleanup for another iteration.
20 lines
No EOL
730 B
C++
20 lines
No EOL
730 B
C++
#pragma once
|
|
#include "archive_base.hpp"
|
|
#include "result/result.hpp"
|
|
|
|
using Result::HorizonResult;
|
|
|
|
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"; }
|
|
|
|
HorizonResult createFile(const FSPath& path, u64 size) override;
|
|
HorizonResult deleteFile(const FSPath& path) override;
|
|
|
|
Rust::Result<ArchiveBase*, HorizonResult> 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;
|
|
}; |