mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
SaveIcon and ReadExtSaveDataIcon
This commit is contained in:
parent
556b3b8913
commit
d4594446bd
6 changed files with 110 additions and 18 deletions
|
@ -57,6 +57,14 @@ namespace ArchiveID {
|
|||
}
|
||||
}
|
||||
|
||||
namespace MediaType {
|
||||
enum : u8 {
|
||||
NAND = 0,
|
||||
SD = 1,
|
||||
Gamecard = 2
|
||||
};
|
||||
};
|
||||
|
||||
struct FSPath {
|
||||
u32 type = PathType::Invalid;
|
||||
|
||||
|
|
|
@ -22,6 +22,9 @@ public:
|
|||
std::optional<u32> readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override;
|
||||
void format(const FSPath& path, const FormatInfo& info) override;
|
||||
Rust::Result<FormatInfo, HorizonResult> getFormatInfo(const FSPath& path) override;
|
||||
void clear(const FSPath& path) const;
|
||||
void saveIcon(const std::vector<u8>& data) const;
|
||||
Rust::Result<std::vector<u8>, HorizonResult> loadIcon() const;
|
||||
|
||||
std::filesystem::path getFormatInfoPath(const FSPath& path) const;
|
||||
std::filesystem::path getUserDataPath() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue