diff options
author | Zach Hilman <[email protected]> | 2018-08-25 19:05:22 -0400 |
---|---|---|
committer | Zach Hilman <[email protected]> | 2018-09-04 16:23:44 -0400 |
commit | f5e03b9173268d2607b9db379fef93170212328a (patch) | |
tree | ad2386139dd70f3ac9e1b2ae72837ca745b6f6d2 /src/core/loader/loader.cpp | |
parent | 08fcb4694f28fab40d76cc60fcd2fc35fb24917f (diff) | |
download | yuzu-android-f5e03b9173268d2607b9db379fef93170212328a.tar.gz yuzu-android-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) { return "unknown"; } -constexpr std::array<const char*, 50> RESULT_MESSAGES{ +constexpr std::array<const char*, 57> RESULT_MESSAGES{ "The operation completed successfully.", "The loader requested to load is already loaded.", "The operation is not implemented.", @@ -144,6 +144,15 @@ constexpr std::array<const char*, 50> RESULT_MESSAGES{ "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 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)); |