summaryrefslogtreecommitdiff
path: root/src/core/loader/ncch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/loader/ncch.h')
-rw-r--r--src/core/loader/ncch.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h
index d180e77ed..b4374a476 100644
--- a/src/core/loader/ncch.h
+++ b/src/core/loader/ncch.h
@@ -163,7 +163,7 @@ namespace Loader {
163/// Loads an NCCH file (e.g. from a CCI, or the first NCCH in a CXI) 163/// Loads an NCCH file (e.g. from a CCI, or the first NCCH in a CXI)
164class AppLoader_NCCH final : public AppLoader { 164class AppLoader_NCCH final : public AppLoader {
165public: 165public:
166 AppLoader_NCCH(std::unique_ptr<FileUtil::IOFile>&& file, const std::string& filepath) 166 AppLoader_NCCH(FileUtil::IOFile&& file, const std::string& filepath)
167 : AppLoader(std::move(file)), filepath(filepath) { } 167 : AppLoader(std::move(file)), filepath(filepath) { }
168 168
169 /** 169 /**
@@ -184,35 +184,35 @@ public:
184 * @param buffer Reference to buffer to store data 184 * @param buffer Reference to buffer to store data
185 * @return ResultStatus result of function 185 * @return ResultStatus result of function
186 */ 186 */
187 ResultStatus ReadCode(std::vector<u8>& buffer) const override; 187 ResultStatus ReadCode(std::vector<u8>& buffer) override;
188 188
189 /** 189 /**
190 * Get the icon (typically icon section) of the application 190 * Get the icon (typically icon section) of the application
191 * @param buffer Reference to buffer to store data 191 * @param buffer Reference to buffer to store data
192 * @return ResultStatus result of function 192 * @return ResultStatus result of function
193 */ 193 */
194 ResultStatus ReadIcon(std::vector<u8>& buffer) const override; 194 ResultStatus ReadIcon(std::vector<u8>& buffer) override;
195 195
196 /** 196 /**
197 * Get the banner (typically banner section) of the application 197 * Get the banner (typically banner section) of the application
198 * @param buffer Reference to buffer to store data 198 * @param buffer Reference to buffer to store data
199 * @return ResultStatus result of function 199 * @return ResultStatus result of function
200 */ 200 */
201 ResultStatus ReadBanner(std::vector<u8>& buffer) const override; 201 ResultStatus ReadBanner(std::vector<u8>& buffer) override;
202 202
203 /** 203 /**
204 * Get the logo (typically logo section) of the application 204 * Get the logo (typically logo section) of the application
205 * @param buffer Reference to buffer to store data 205 * @param buffer Reference to buffer to store data
206 * @return ResultStatus result of function 206 * @return ResultStatus result of function
207 */ 207 */
208 ResultStatus ReadLogo(std::vector<u8>& buffer) const override; 208 ResultStatus ReadLogo(std::vector<u8>& buffer) override;
209 209
210 /** 210 /**
211 * Get the RomFS of the application 211 * Get the RomFS of the application
212 * @param buffer Reference to buffer to store data 212 * @param buffer Reference to buffer to store data
213 * @return ResultStatus result of function 213 * @return ResultStatus result of function
214 */ 214 */
215 ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, u64& size) const override; 215 ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, u64& size) override;
216 216
217private: 217private:
218 218
@@ -222,13 +222,13 @@ private:
222 * @param buffer Vector to read data into 222 * @param buffer Vector to read data into
223 * @return ResultStatus result of function 223 * @return ResultStatus result of function
224 */ 224 */
225 ResultStatus LoadSectionExeFS(const char* name, std::vector<u8>& buffer) const; 225 ResultStatus LoadSectionExeFS(const char* name, std::vector<u8>& buffer);
226 226
227 /** 227 /**
228 * Loads .code section into memory for booting 228 * Loads .code section into memory for booting
229 * @return ResultStatus result of function 229 * @return ResultStatus result of function
230 */ 230 */
231 ResultStatus LoadExec() const; 231 ResultStatus LoadExec();
232 232
233 bool is_compressed = false; 233 bool is_compressed = false;
234 234