diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/loader/3dsx.h | 20 | ||||
| -rw-r--r-- | src/core/loader/elf.h | 8 | ||||
| -rw-r--r-- | src/core/loader/ncch.h | 28 |
3 files changed, 0 insertions, 56 deletions
diff --git a/src/core/loader/3dsx.h b/src/core/loader/3dsx.h index cfcc21cc4..3f376778a 100644 --- a/src/core/loader/3dsx.h +++ b/src/core/loader/3dsx.h | |||
| @@ -27,34 +27,14 @@ public: | |||
| 27 | */ | 27 | */ |
| 28 | static FileType IdentifyType(FileUtil::IOFile& file); | 28 | static FileType IdentifyType(FileUtil::IOFile& file); |
| 29 | 29 | ||
| 30 | /** | ||
| 31 | * Returns the type of this file | ||
| 32 | * @return FileType corresponding to the loaded file | ||
| 33 | */ | ||
| 34 | FileType GetFileType() override { | 30 | FileType GetFileType() override { |
| 35 | return IdentifyType(file); | 31 | return IdentifyType(file); |
| 36 | } | 32 | } |
| 37 | 33 | ||
| 38 | /** | ||
| 39 | * Load the bootable file | ||
| 40 | * @return ResultStatus result of function | ||
| 41 | */ | ||
| 42 | ResultStatus Load() override; | 34 | ResultStatus Load() override; |
| 43 | 35 | ||
| 44 | /** | ||
| 45 | * Get the icon (typically icon section) of the application | ||
| 46 | * @param buffer Reference to buffer to store data | ||
| 47 | * @return ResultStatus result of function | ||
| 48 | */ | ||
| 49 | ResultStatus ReadIcon(std::vector<u8>& buffer) override; | 36 | ResultStatus ReadIcon(std::vector<u8>& buffer) override; |
| 50 | 37 | ||
| 51 | /** | ||
| 52 | * Get the RomFS of the application | ||
| 53 | * @param romfs_file Reference to buffer to store data | ||
| 54 | * @param offset Offset in the file to the RomFS | ||
| 55 | * @param size Size of the RomFS in bytes | ||
| 56 | * @return ResultStatus result of function | ||
| 57 | */ | ||
| 58 | ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, | 38 | ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset, |
| 59 | u64& size) override; | 39 | u64& size) override; |
| 60 | 40 | ||
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h index 584bf6e27..862aa90d8 100644 --- a/src/core/loader/elf.h +++ b/src/core/loader/elf.h | |||
| @@ -26,18 +26,10 @@ public: | |||
| 26 | */ | 26 | */ |
| 27 | static FileType IdentifyType(FileUtil::IOFile& file); | 27 | static FileType IdentifyType(FileUtil::IOFile& file); |
| 28 | 28 | ||
| 29 | /** | ||
| 30 | * Returns the type of this file | ||
| 31 | * @return FileType corresponding to the loaded file | ||
| 32 | */ | ||
| 33 | FileType GetFileType() override { | 29 | FileType GetFileType() override { |
| 34 | return IdentifyType(file); | 30 | return IdentifyType(file); |
| 35 | } | 31 | } |
| 36 | 32 | ||
| 37 | /** | ||
| 38 | * Load the bootable file | ||
| 39 | * @return ResultStatus result of function | ||
| 40 | */ | ||
| 41 | ResultStatus Load() override; | 33 | ResultStatus Load() override; |
| 42 | 34 | ||
| 43 | private: | 35 | private: |
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index 6c93d46d8..6afc171a5 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h | |||
| @@ -171,18 +171,10 @@ public: | |||
| 171 | */ | 171 | */ |
| 172 | static FileType IdentifyType(FileUtil::IOFile& file); | 172 | static FileType IdentifyType(FileUtil::IOFile& file); |
| 173 | 173 | ||
| 174 | /** | ||
| 175 | * Returns the type of this file | ||
| 176 | * @return FileType corresponding to the loaded file | ||
| 177 | */ | ||
| 178 | FileType GetFileType() override { | 174 | FileType GetFileType() override { |
| 179 | return IdentifyType(file); | 175 | return IdentifyType(file); |
| 180 | } | 176 | } |
| 181 | 177 | ||
| 182 | /** | ||
| 183 | * Load the application | ||
| 184 | * @return ResultStatus result of function | ||
| 185 | */ | ||
| 186 | ResultStatus Load() override; | 178 | ResultStatus Load() override; |
| 187 | 179 | ||
| 188 | /** | 180 | /** |
| @@ -191,32 +183,12 @@ public: | |||
| 191 | */ | 183 | */ |
| 192 | boost::optional<u32> LoadKernelSystemMode(); | 184 | boost::optional<u32> LoadKernelSystemMode(); |
| 193 | 185 | ||
| 194 | /** | ||
| 195 | * Get the code (typically .code section) of the application | ||
| 196 | * @param buffer Reference to buffer to store data | ||
| 197 | * @return ResultStatus result of function | ||
| 198 | */ | ||
| 199 | ResultStatus ReadCode(std::vector<u8>& buffer) override; | 186 | ResultStatus ReadCode(std::vector<u8>& buffer) override; |
| 200 | 187 | ||
| 201 | /** | ||
| 202 | * Get the icon (typically icon section) of the application | ||
| 203 | * @param buffer Reference to buffer to store data | ||
| 204 | * @return ResultStatus result of function | ||
| 205 | */ | ||
| 206 | ResultStatus ReadIcon(std::vector<u8>& buffer) override; | 188 | ResultStatus ReadIcon(std::vector<u8>& buffer) override; |
| 207 | 189 | ||
| 208 | /** | ||
| 209 | * Get the banner (typically banner section) of the application | ||
| 210 | * @param buffer Reference to buffer to store data | ||
| 211 | * @return ResultStatus result of function | ||
| 212 | */ | ||
| 213 | ResultStatus ReadBanner(std::vector<u8>& buffer) override; | 190 | ResultStatus ReadBanner(std::vector<u8>& buffer) override; |
| 214 | 191 | ||
| 215 | /** | ||
| 216 | * Get the logo (typically logo section) of the application | ||
| 217 | * @param buffer Reference to buffer to store data | ||
| 218 | * @return ResultStatus result of function | ||
| 219 | */ | ||
| 220 | ResultStatus ReadLogo(std::vector<u8>& buffer) override; | 192 | ResultStatus ReadLogo(std::vector<u8>& buffer) override; |
| 221 | 193 | ||
| 222 | /** | 194 | /** |