diff options
| author | 2014-06-19 00:11:45 -0400 | |
|---|---|---|
| committer | 2014-06-24 19:30:06 -0400 | |
| commit | a8c46485203d3ab00ef478bbf9daa7450df14dfd (patch) | |
| tree | 0f30ad4e7442a13e2e4e9aa68e687b677375c4d0 /src/core/loader/ncch.h | |
| parent | NCCH: Fixes reduce unnecessary logging and load logo/banner/etc. sections cor... (diff) | |
| download | yuzu-a8c46485203d3ab00ef478bbf9daa7450df14dfd.tar.gz yuzu-a8c46485203d3ab00ef478bbf9daa7450df14dfd.tar.xz yuzu-a8c46485203d3ab00ef478bbf9daa7450df14dfd.zip | |
NCCH: Added RomFS loading.
Diffstat (limited to 'src/core/loader/ncch.h')
| -rw-r--r-- | src/core/loader/ncch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index 525a5aef5..939b144a6 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h | |||
| @@ -169,6 +169,13 @@ private: | |||
| 169 | std::vector<u8>& buffer); | 169 | std::vector<u8>& buffer); |
| 170 | 170 | ||
| 171 | /** | 171 | /** |
| 172 | * Reads RomFS of an NCCH file into AppLoader | ||
| 173 | * @param file Handle to file to read from | ||
| 174 | * @return ResultStatus result of function | ||
| 175 | */ | ||
| 176 | const ResultStatus LoadRomFS(File::IOFile& file); | ||
| 177 | |||
| 178 | /** | ||
| 172 | * Loads .code section into memory for booting | 179 | * Loads .code section into memory for booting |
| 173 | * @return ResultStatus result of function | 180 | * @return ResultStatus result of function |
| 174 | */ | 181 | */ |
| @@ -182,6 +189,7 @@ private: | |||
| 182 | u32 ncch_offset; // Offset to NCCH header, can be 0 or after NCSD header | 189 | u32 ncch_offset; // Offset to NCCH header, can be 0 or after NCSD header |
| 183 | u32 exefs_offset; | 190 | u32 exefs_offset; |
| 184 | 191 | ||
| 192 | NCCH_Header ncch_header; | ||
| 185 | ExeFs_Header exefs_header; | 193 | ExeFs_Header exefs_header; |
| 186 | ExHeader_Header exheader_header; | 194 | ExHeader_Header exheader_header; |
| 187 | }; | 195 | }; |