diff options
| author | bunnei <bunneidev@gmail.com> | 2018-09-05 18:06:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-05 18:06:11 -0400 |
| commit | 5eacb2bab401aa1acaad4035fac6274f59d6e035 (patch) | |
| tree | 0ff4d2396cb0730ec5952181e4e67947b64832ec /src/core/loader/loader.cpp | |
| parent | ca743850063728c9f3b9972896b4e929965d21ac (diff) | |
| parent | 46eb9ec6ba96d8f485d920f1f7b93e7a0ed5d61c (diff) | |
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 446adf5578..fa43a26506 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -93,7 +93,7 @@ std::string GetFileTypeString(FileType type) { return "unknown"; } -constexpr std::array<const char*, 50> RESULT_MESSAGES{ +constexpr std::array<const char*, 58> RESULT_MESSAGES{ "The operation completed successfully.", "The loader requested to load is already loaded.", "The operation is not implemented.", @@ -143,7 +143,16 @@ constexpr std::array<const char*, 50> RESULT_MESSAGES{ "The AES Key Generation Source could not be found.", "The SD Save Key Source could not be found.", "The SD NCA Key Source could not be found.", - "The NSP file is missing a Program-type NCA."}; + "The NSP file is missing a Program-type NCA.", + "The BKTR-type NCA has a bad BKTR header.", + "The BKTR Subsection entry is not located immediately after the Relocation entry.", + "The BKTR Subsection entry is not at the end of the media block.", + "The BKTR-type NCA has a bad Relocation block.", + "The BKTR-type NCA has a bad Subsection block.", + "The BKTR-type NCA has a bad Relocation bucket.", + "The BKTR-type NCA has a bad Subsection bucket.", + "The BKTR-type NCA is missing the base RomFS.", +}; std::ostream& operator<<(std::ostream& os, ResultStatus status) { os << RESULT_MESSAGES.at(static_cast<size_t>(status)); |
