[NCCH] Add support for reading Miis out of NAND

This commit is contained in:
wheremyfoodat 2023-01-28 22:25:20 +02:00
parent 4e64f722e5
commit a1cb50925f
8 changed files with 6307 additions and 15 deletions

View file

@ -90,10 +90,11 @@ struct FileSession {
ArchiveBase* archive = nullptr;
FILE* fd = nullptr; // File descriptor for file sessions that require them.
FSPath path;
FSPath archivePath;
bool isOpen;
FileSession(ArchiveBase* archive, const FSPath& filePath, FILE* fd, bool isOpen = true) :
archive(archive), path(filePath), fd(fd), isOpen(isOpen) {}
FileSession(ArchiveBase* archive, const FSPath& filePath, const FSPath& archivePath, FILE* fd, bool isOpen = true) :
archive(archive), path(filePath), archivePath(archivePath), fd(fd), isOpen(isOpen) {}
};
struct ArchiveSession {