mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
[NCCH] Add support for reading Miis out of NAND
This commit is contained in:
parent
4e64f722e5
commit
a1cb50925f
8 changed files with 6307 additions and 15 deletions
|
@ -12,4 +12,16 @@ public:
|
|||
CreateFileResult createFile(const FSPath& path, u64 size) override;
|
||||
FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override;
|
||||
std::optional<u32> readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override;
|
||||
|
||||
// Returns whether the cart has a RomFS
|
||||
bool hasRomFS() {
|
||||
auto cxi = mem.getCXI();
|
||||
return (cxi != nullptr && cxi->hasRomFS());
|
||||
}
|
||||
|
||||
// Returns whether the cart has an ExeFS (All executable carts should have an ExeFS. This is just here to be safe)
|
||||
bool hasExeFS() {
|
||||
auto cxi = mem.getCXI();
|
||||
return (cxi != nullptr && cxi->hasExeFS());
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue