diff options
| author | 2018-09-05 18:06:11 -0400 | |
|---|---|---|
| committer | 2018-09-05 18:06:11 -0400 | |
| commit | a6ae7654105fe6ec46ff0bcabb714b8447b83899 (patch) | |
| tree | 0ff4d2396cb0730ec5952181e4e67947b64832ec /src/core/loader/loader.cpp | |
| parent | Merge pull request #1245 from degasus/optimizations (diff) | |
| parent | bktr: Fix bucket overlap error (diff) | |
| download | yuzu-a6ae7654105fe6ec46ff0bcabb714b8447b83899.tar.gz yuzu-a6ae7654105fe6ec46ff0bcabb714b8447b83899.tar.xz yuzu-a6ae7654105fe6ec46ff0bcabb714b8447b83899.zip | |
Merge pull request #1179 from DarkLordZach/bktr
file_sys: Add support for BKTR format (Game Updates)
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 446adf557..fa43a2650 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -93,7 +93,7 @@ std::string GetFileTypeString(FileType type) { | |||
| 93 | return "unknown"; | 93 | return "unknown"; |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | constexpr std::array<const char*, 50> RESULT_MESSAGES{ | 96 | constexpr std::array<const char*, 58> RESULT_MESSAGES{ |
| 97 | "The operation completed successfully.", | 97 | "The operation completed successfully.", |
| 98 | "The loader requested to load is already loaded.", | 98 | "The loader requested to load is already loaded.", |
| 99 | "The operation is not implemented.", | 99 | "The operation is not implemented.", |
| @@ -143,7 +143,16 @@ constexpr std::array<const char*, 50> RESULT_MESSAGES{ | |||
| 143 | "The AES Key Generation Source could not be found.", | 143 | "The AES Key Generation Source could not be found.", |
| 144 | "The SD Save Key Source could not be found.", | 144 | "The SD Save Key Source could not be found.", |
| 145 | "The SD NCA Key Source could not be found.", | 145 | "The SD NCA Key Source could not be found.", |
| 146 | "The NSP file is missing a Program-type NCA."}; | 146 | "The NSP file is missing a Program-type NCA.", |
| 147 | "The BKTR-type NCA has a bad BKTR header.", | ||
| 148 | "The BKTR Subsection entry is not located immediately after the Relocation entry.", | ||
| 149 | "The BKTR Subsection entry is not at the end of the media block.", | ||
| 150 | "The BKTR-type NCA has a bad Relocation block.", | ||
| 151 | "The BKTR-type NCA has a bad Subsection block.", | ||
| 152 | "The BKTR-type NCA has a bad Relocation bucket.", | ||
| 153 | "The BKTR-type NCA has a bad Subsection bucket.", | ||
| 154 | "The BKTR-type NCA is missing the base RomFS.", | ||
| 155 | }; | ||
| 147 | 156 | ||
| 148 | std::ostream& operator<<(std::ostream& os, ResultStatus status) { | 157 | std::ostream& operator<<(std::ostream& os, ResultStatus status) { |
| 149 | os << RESULT_MESSAGES.at(static_cast<size_t>(status)); | 158 | os << RESULT_MESSAGES.at(static_cast<size_t>(status)); |