diff options
| author | 2018-08-25 19:05:22 -0400 | |
|---|---|---|
| committer | 2018-09-04 16:23:44 -0400 | |
| commit | f5e03b9173268d2607b9db379fef93170212328a (patch) | |
| tree | ad2386139dd70f3ac9e1b2ae72837ca745b6f6d2 /src/core/loader/loader.cpp | |
| parent | loader: Ignore patches on NRO and DRD (diff) | |
| download | yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.gz yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.xz yuzu-f5e03b9173268d2607b9db379fef93170212328a.zip | |
loader: Add BKTR-specific error messages and codes
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 446adf557..729b1ca08 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*, 57> 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.", |
| @@ -144,6 +144,15 @@ constexpr std::array<const char*, 50> RESULT_MESSAGES{ | |||
| 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)); |