Add IOFile and headers for NCSD/NCCH

This commit is contained in:
wheremyfoodat 2022-10-01 03:28:12 +03:00
parent 7ba5c5a1bc
commit 9a040e1cde
4 changed files with 116 additions and 1 deletions

15
include/loader/ncch.hpp Normal file
View file

@ -0,0 +1,15 @@
#include "helpers.hpp"
struct NCCH {
bool isNew3DS = false;
bool initialized = false;
bool mountRomFS = false;
bool encrypted = false;
static constexpr u64 mediaUnit = 0x200;
u64 size = 0; // Size of NCCH converted to bytes
// Header: 0x200 byte NCCH header
// Returns true on success, false on failure
bool loadFromHeader(u8* header);
};