diff options
| author | 2014-06-27 15:33:23 -0400 | |
|---|---|---|
| committer | 2014-06-27 17:49:01 -0400 | |
| commit | d8da707bb90c233d5e815a508bea3473e6e50afa (patch) | |
| tree | dd9056678f602276691bb4613ea38c7c2ac9126f /src/core/loader/ncch.h | |
| parent | FS: Added stubbed code to intercept and decode file system service functions. (diff) | |
| download | yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar.gz yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar.xz yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.zip | |
Loader: Refactored interface such that data is no longer stored by loader.
NCCH: Removed extra qualification ‘Loader::AppLoader_NCCH::’.
Diffstat (limited to 'src/core/loader/ncch.h')
| -rw-r--r-- | src/core/loader/ncch.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index bf65425a4..99753b244 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h | |||
| @@ -158,38 +158,38 @@ public: | |||
| 158 | 158 | ||
| 159 | /** | 159 | /** |
| 160 | * Get the code (typically .code section) of the application | 160 | * Get the code (typically .code section) of the application |
| 161 | * @param error ResultStatus result of function | 161 | * @param buffer Reference to buffer to store data |
| 162 | * @return Reference to code buffer | 162 | * @return ResultStatus result of function |
| 163 | */ | 163 | */ |
| 164 | const std::vector<u8>& ReadCode(ResultStatus& error); | 164 | ResultStatus ReadCode(std::vector<u8>& buffer); |
| 165 | 165 | ||
| 166 | /** | 166 | /** |
| 167 | * Get the icon (typically icon section) of the application | 167 | * Get the icon (typically icon section) of the application |
| 168 | * @param error ResultStatus result of function | 168 | * @param buffer Reference to buffer to store data |
| 169 | * @return Reference to icon buffer | 169 | * @return ResultStatus result of function |
| 170 | */ | 170 | */ |
| 171 | const std::vector<u8>& ReadIcon(ResultStatus& error); | 171 | ResultStatus ReadIcon(std::vector<u8>& buffer); |
| 172 | 172 | ||
| 173 | /** | 173 | /** |
| 174 | * Get the banner (typically banner section) of the application | 174 | * Get the banner (typically banner section) of the application |
| 175 | * @param error ResultStatus result of function | 175 | * @param buffer Reference to buffer to store data |
| 176 | * @return Reference to banner buffer | 176 | * @return ResultStatus result of function |
| 177 | */ | 177 | */ |
| 178 | const std::vector<u8>& ReadBanner(ResultStatus& error); | 178 | ResultStatus ReadBanner(std::vector<u8>& buffer); |
| 179 | 179 | ||
| 180 | /** | 180 | /** |
| 181 | * Get the logo (typically logo section) of the application | 181 | * Get the logo (typically logo section) of the application |
| 182 | * @param error ResultStatus result of function | 182 | * @param buffer Reference to buffer to store data |
| 183 | * @return Reference to logo buffer | 183 | * @return ResultStatus result of function |
| 184 | */ | 184 | */ |
| 185 | const std::vector<u8>& ReadLogo(ResultStatus& error); | 185 | ResultStatus ReadLogo(std::vector<u8>& buffer); |
| 186 | 186 | ||
| 187 | /** | 187 | /** |
| 188 | * Get the RomFs archive of the application | 188 | * Get the RomFS of the application |
| 189 | * @param error ResultStatus result of function | 189 | * @param buffer Reference to buffer to store data |
| 190 | * @return Reference to RomFs archive buffer | 190 | * @return ResultStatus result of function |
| 191 | */ | 191 | */ |
| 192 | const std::vector<u8>& ReadRomFS(ResultStatus& error); | 192 | ResultStatus ReadRomFS(std::vector<u8>& buffer); |
| 193 | 193 | ||
| 194 | private: | 194 | private: |
| 195 | 195 | ||
| @@ -197,11 +197,9 @@ private: | |||
| 197 | * Reads an application ExeFS section of an NCCH file into AppLoader (e.g. .code, .logo, etc.) | 197 | * Reads an application ExeFS section of an NCCH file into AppLoader (e.g. .code, .logo, etc.) |
| 198 | * @param name Name of section to read out of NCCH file | 198 | * @param name Name of section to read out of NCCH file |
| 199 | * @param buffer Vector to read data into | 199 | * @param buffer Vector to read data into |
| 200 | * @param error ResultStatus result of function | 200 | * @return ResultStatus result of function |
| 201 | * @return Reference to buffer of data that was read | ||
| 202 | */ | 201 | */ |
| 203 | const std::vector<u8>& LoadSectionExeFS(const char* name, std::vector<u8>& buffer, | 202 | ResultStatus LoadSectionExeFS(const char* name, std::vector<u8>& buffer); |
| 204 | ResultStatus& error); | ||
| 205 | 203 | ||
| 206 | /** | 204 | /** |
| 207 | * Loads .code section into memory for booting | 205 | * Loads .code section into memory for booting |