|
|
|
@ -171,18 +171,10 @@ public: |
|
|
|
*/ |
|
|
|
static FileType IdentifyType(FileUtil::IOFile& file); |
|
|
|
|
|
|
|
/** |
|
|
|
* Returns the type of this file |
|
|
|
* @return FileType corresponding to the loaded file |
|
|
|
*/ |
|
|
|
FileType GetFileType() override { |
|
|
|
return IdentifyType(file); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Load the application |
|
|
|
* @return ResultStatus result of function |
|
|
|
*/ |
|
|
|
ResultStatus Load() override; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -191,32 +183,12 @@ public: |
|
|
|
*/ |
|
|
|
boost::optional<u32> LoadKernelSystemMode(); |
|
|
|
|
|
|
|
/** |
|
|
|
* Get the code (typically .code section) of the application |
|
|
|
* @param buffer Reference to buffer to store data |
|
|
|
* @return ResultStatus result of function |
|
|
|
*/ |
|
|
|
ResultStatus ReadCode(std::vector<u8>& buffer) override; |
|
|
|
|
|
|
|
/** |
|
|
|
* Get the icon (typically icon section) of the application |
|
|
|
* @param buffer Reference to buffer to store data |
|
|
|
* @return ResultStatus result of function |
|
|
|
*/ |
|
|
|
ResultStatus ReadIcon(std::vector<u8>& buffer) override; |
|
|
|
|
|
|
|
/** |
|
|
|
* Get the banner (typically banner section) of the application |
|
|
|
* @param buffer Reference to buffer to store data |
|
|
|
* @return ResultStatus result of function |
|
|
|
*/ |
|
|
|
ResultStatus ReadBanner(std::vector<u8>& buffer) override; |
|
|
|
|
|
|
|
/** |
|
|
|
* Get the logo (typically logo section) of the application |
|
|
|
* @param buffer Reference to buffer to store data |
|
|
|
* @return ResultStatus result of function |
|
|
|
*/ |
|
|
|
ResultStatus ReadLogo(std::vector<u8>& buffer) override; |
|
|
|
|
|
|
|
/** |
|
|
|
|