diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-06-05 06:21:44 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-05 06:21:44 +0200 |
commit | a76bd4926883e0b0d5649b04779525582708331d (patch) | |
tree | 90fcf4fdf8698f41e7866b91b51d720ffed3fc5c /src/core/loader | |
parent | loader: Add AppLoader_KIP for KIP files (diff) | |
download | yuzu-a76bd4926883e0b0d5649b04779525582708331d.tar yuzu-a76bd4926883e0b0d5649b04779525582708331d.tar.gz yuzu-a76bd4926883e0b0d5649b04779525582708331d.tar.bz2 yuzu-a76bd4926883e0b0d5649b04779525582708331d.tar.lz yuzu-a76bd4926883e0b0d5649b04779525582708331d.tar.xz yuzu-a76bd4926883e0b0d5649b04779525582708331d.tar.zst yuzu-a76bd4926883e0b0d5649b04779525582708331d.zip |
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/loader.cpp | 6 | ||||
-rw-r--r-- | src/core/loader/loader.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index d8cc30959..8a783ae2f 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*, 62> RESULT_MESSAGES{ +constexpr std::array<const char*, 66> RESULT_MESSAGES{ "The operation completed successfully.", "The loader requested to load is already loaded.", "The operation is not implemented.", @@ -156,6 +156,10 @@ constexpr std::array<const char*, 62> RESULT_MESSAGES{ "The BKTR-type NCA has a bad Subsection bucket.", "The BKTR-type NCA is missing the base RomFS.", "The NSP or XCI does not contain an update in addition to the base game.", + "The KIP file has a bad header.", + "The KIP BLZ decompression of the section failed unexpectedly.", + "The INI file has a bad header.", + "The INI file contains more than the maximum allowable number of KIP files.", }; std::ostream& operator<<(std::ostream& os, ResultStatus status) { diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index f7846db52..fbca730a2 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h @@ -124,6 +124,10 @@ enum class ResultStatus : u16 { ErrorBadSubsectionBuckets, ErrorMissingBKTRBaseRomFS, ErrorNoPackedUpdate, + ErrorBadKIPHeader, + ErrorBLZDecompressionFailed, + ErrorBadINIHeader, + ErrorINITooManyKIPs, }; std::ostream& operator<<(std::ostream& os, ResultStatus status); |