diff options
| author | 2017-09-25 00:17:38 -0600 | |
|---|---|---|
| committer | 2017-09-25 08:17:38 +0200 | |
| commit | c91ccbd0ba4118554d7377bbc3bd4c64f9bccf84 (patch) | |
| tree | d56b08a52a11f229e9ce30aeda2b22bfccd48034 /src/core/loader/loader.h | |
| parent | Services/UDS: Added a function to send EAPoL-Start packets (#2920) (diff) | |
| download | yuzu-c91ccbd0ba4118554d7377bbc3bd4c64f9bccf84.tar.gz yuzu-c91ccbd0ba4118554d7377bbc3bd4c64f9bccf84.tar.xz yuzu-c91ccbd0ba4118554d7377bbc3bd4c64f9bccf84.zip | |
Loader/NCCH: Add support for loading application updates (#2927)
* loader/ncch: split NCCH parsing into its own file
* loader/ncch: add support for loading update NCCHs from the SD card
* loader/ncch: fix formatting
* file_sys/ncch_container: Return a value for OpenFile
* loader/ncch: cleanup, always instantiate overlay_ncch to base_ncch
* file_sys/ncch_container: better encryption checks, allow non-app NCCHs to load properly and for the existence of NCCH structures to be checked
* file_sys/ncch_container: pass filepath as a const reference
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index e731888a2..3160fd2fd 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -167,6 +167,19 @@ public: | |||
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | /** | 169 | /** |
| 170 | * Get the update RomFS of the application | ||
| 171 | * Since the RomFS can be huge, we return a file reference instead of copying to a buffer | ||
| 172 | * @param romfs_file The file containing the RomFS | ||
| 173 | * @param offset The offset the romfs begins on | ||
| 174 | * @param size The size of the romfs | ||
| 175 | * @return ResultStatus result of function | ||
| 176 | */ | ||
| 177 | virtual ResultStatus ReadUpdateRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, | ||
| 178 | u64& size) { | ||
| 179 | return ResultStatus::ErrorNotImplemented; | ||
| 180 | } | ||
| 181 | |||
| 182 | /** | ||
| 170 | * Get the title of the application | 183 | * Get the title of the application |
| 171 | * @param title Reference to store the application title into | 184 | * @param title Reference to store the application title into |
| 172 | * @return ResultStatus result of function | 185 | * @return ResultStatus result of function |