diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/archive_romfs.h | 8 | ||||
| -rw-r--r-- | src/core/loader/elf.h | 4 | ||||
| -rw-r--r-- | src/core/loader/ncch.h | 14 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h index e5664ba16..8a31190a9 100644 --- a/src/core/file_sys/archive_romfs.h +++ b/src/core/file_sys/archive_romfs.h | |||
| @@ -20,13 +20,13 @@ namespace FileSys { | |||
| 20 | class Archive_RomFS final : public Archive { | 20 | class Archive_RomFS final : public Archive { |
| 21 | public: | 21 | public: |
| 22 | Archive_RomFS(const Loader::AppLoader& app_loader); | 22 | Archive_RomFS(const Loader::AppLoader& app_loader); |
| 23 | ~Archive_RomFS(); | 23 | ~Archive_RomFS() override; |
| 24 | 24 | ||
| 25 | /** | 25 | /** |
| 26 | * Get the IdCode of the archive (e.g. RomFS, SaveData, etc.) | 26 | * Get the IdCode of the archive (e.g. RomFS, SaveData, etc.) |
| 27 | * @return IdCode of the archive | 27 | * @return IdCode of the archive |
| 28 | */ | 28 | */ |
| 29 | IdCode GetIdCode() const { return IdCode::RomFS; }; | 29 | IdCode GetIdCode() const override { return IdCode::RomFS; }; |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Read data from the archive | 32 | * Read data from the archive |
| @@ -35,13 +35,13 @@ public: | |||
| 35 | * @param buffer Buffer to read data into | 35 | * @param buffer Buffer to read data into |
| 36 | * @return Number of bytes read | 36 | * @return Number of bytes read |
| 37 | */ | 37 | */ |
| 38 | size_t Read(const u64 offset, const u32 length, u8* buffer) const; | 38 | size_t Read(const u64 offset, const u32 length, u8* buffer) const override; |
| 39 | 39 | ||
| 40 | /** | 40 | /** |
| 41 | * Get the size of the archive in bytes | 41 | * Get the size of the archive in bytes |
| 42 | * @return Size of the archive in bytes | 42 | * @return Size of the archive in bytes |
| 43 | */ | 43 | */ |
| 44 | size_t GetSize() const; | 44 | size_t GetSize() const override; |
| 45 | 45 | ||
| 46 | private: | 46 | private: |
| 47 | std::vector<u8> raw_data; | 47 | std::vector<u8> raw_data; |
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h index cec1167ca..5ae88439a 100644 --- a/src/core/loader/elf.h +++ b/src/core/loader/elf.h | |||
| @@ -16,13 +16,13 @@ namespace Loader { | |||
| 16 | class AppLoader_ELF final : public AppLoader { | 16 | class AppLoader_ELF final : public AppLoader { |
| 17 | public: | 17 | public: |
| 18 | AppLoader_ELF(const std::string& filename); | 18 | AppLoader_ELF(const std::string& filename); |
| 19 | ~AppLoader_ELF(); | 19 | ~AppLoader_ELF() override; |
| 20 | 20 | ||
| 21 | /** | 21 | /** |
| 22 | * Load the bootable file | 22 | * Load the bootable file |
| 23 | * @return ResultStatus result of function | 23 | * @return ResultStatus result of function |
| 24 | */ | 24 | */ |
| 25 | ResultStatus Load(); | 25 | ResultStatus Load() override; |
| 26 | 26 | ||
| 27 | private: | 27 | private: |
| 28 | std::string filename; | 28 | std::string filename; |
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index de89280ea..29b59aa11 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h | |||
| @@ -148,48 +148,48 @@ namespace Loader { | |||
| 148 | class AppLoader_NCCH final : public AppLoader { | 148 | class AppLoader_NCCH final : public AppLoader { |
| 149 | public: | 149 | public: |
| 150 | AppLoader_NCCH(const std::string& filename); | 150 | AppLoader_NCCH(const std::string& filename); |
| 151 | ~AppLoader_NCCH(); | 151 | ~AppLoader_NCCH() override; |
| 152 | 152 | ||
| 153 | /** | 153 | /** |
| 154 | * Load the application | 154 | * Load the application |
| 155 | * @return ResultStatus result of function | 155 | * @return ResultStatus result of function |
| 156 | */ | 156 | */ |
| 157 | ResultStatus Load(); | 157 | ResultStatus Load() override; |
| 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 buffer Reference to buffer to store data | 161 | * @param buffer Reference to buffer to store data |
| 162 | * @return ResultStatus result of function | 162 | * @return ResultStatus result of function |
| 163 | */ | 163 | */ |
| 164 | ResultStatus ReadCode(std::vector<u8>& buffer) const; | 164 | ResultStatus ReadCode(std::vector<u8>& buffer) const override; |
| 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 buffer Reference to buffer to store data | 168 | * @param buffer Reference to buffer to store data |
| 169 | * @return ResultStatus result of function | 169 | * @return ResultStatus result of function |
| 170 | */ | 170 | */ |
| 171 | ResultStatus ReadIcon(std::vector<u8>& buffer) const; | 171 | ResultStatus ReadIcon(std::vector<u8>& buffer) const override; |
| 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 buffer Reference to buffer to store data | 175 | * @param buffer Reference to buffer to store data |
| 176 | * @return ResultStatus result of function | 176 | * @return ResultStatus result of function |
| 177 | */ | 177 | */ |
| 178 | ResultStatus ReadBanner(std::vector<u8>& buffer) const; | 178 | ResultStatus ReadBanner(std::vector<u8>& buffer) const override; |
| 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 buffer Reference to buffer to store data | 182 | * @param buffer Reference to buffer to store data |
| 183 | * @return ResultStatus result of function | 183 | * @return ResultStatus result of function |
| 184 | */ | 184 | */ |
| 185 | ResultStatus ReadLogo(std::vector<u8>& buffer) const; | 185 | ResultStatus ReadLogo(std::vector<u8>& buffer) const override; |
| 186 | 186 | ||
| 187 | /** | 187 | /** |
| 188 | * Get the RomFS of the application | 188 | * Get the RomFS of the application |
| 189 | * @param buffer Reference to buffer to store data | 189 | * @param buffer Reference to buffer to store data |
| 190 | * @return ResultStatus result of function | 190 | * @return ResultStatus result of function |
| 191 | */ | 191 | */ |
| 192 | ResultStatus ReadRomFS(std::vector<u8>& buffer) const; | 192 | ResultStatus ReadRomFS(std::vector<u8>& buffer) const override; |
| 193 | 193 | ||
| 194 | private: | 194 | private: |
| 195 | 195 | ||