summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-26 01:05:22 +0200
committerZach Hilman <zachhilman@gmail.com>2018-09-04 22:23:44 +0200
commitf5e03b9173268d2607b9db379fef93170212328a (patch)
treead2386139dd70f3ac9e1b2ae72837ca745b6f6d2 /src/core/loader/loader.cpp
parentloader: Ignore patches on NRO and DRD (diff)
downloadyuzu-f5e03b9173268d2607b9db379fef93170212328a.tar
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.gz
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.bz2
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.lz
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.xz
yuzu-f5e03b9173268d2607b9db379fef93170212328a.tar.zst
yuzu-f5e03b9173268d2607b9db379fef93170212328a.zip
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r--src/core/loader/loader.cpp11
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));