NCCH: Added RomFS loading.

This commit is contained in:
bunnei 2014-06-19 00:11:45 -04:00
parent 3da2bc6830
commit a8c4648520
2 changed files with 36 additions and 1 deletions

View file

@ -168,6 +168,13 @@ private:
const ResultStatus LoadSectionExeFS(File::IOFile& file, const char* name,
std::vector<u8>& buffer);
/**
* Reads RomFS of an NCCH file into AppLoader
* @param file Handle to file to read from
* @return ResultStatus result of function
*/
const ResultStatus LoadRomFS(File::IOFile& file);
/**
* Loads .code section into memory for booting
* @return ResultStatus result of function
@ -182,6 +189,7 @@ private:
u32 ncch_offset; // Offset to NCCH header, can be 0 or after NCSD header
u32 exefs_offset;
NCCH_Header ncch_header;
ExeFs_Header exefs_header;
ExHeader_Header exheader_header;
};