diff options
| author | 2018-08-11 19:25:30 -0400 | |
|---|---|---|
| committer | 2018-08-11 19:25:30 -0400 | |
| commit | bc286c169fb8b07d21e082e05152cfd6bc611b33 (patch) | |
| tree | 512bc4cca3adbe98a16cae454377c2ec2638b5e3 /src/core/loader/loader.h | |
| parent | Merge pull request #1018 from Subv/ssy_sync (diff) | |
| parent | game_list: Reorder error checks (diff) | |
| download | yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar.gz yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar.xz yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.zip | |
Merge pull request #970 from DarkLordZach/loader-errors
loader: Add more descriptive errors
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 6a9e5a68b..cfdadbee3 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -58,18 +58,46 @@ std::string GetFileTypeString(FileType type); | |||
| 58 | /// Return type for functions in Loader namespace | 58 | /// Return type for functions in Loader namespace |
| 59 | enum class ResultStatus { | 59 | enum class ResultStatus { |
| 60 | Success, | 60 | Success, |
| 61 | Error, | ||
| 62 | ErrorInvalidFormat, | ||
| 63 | ErrorNotImplemented, | ||
| 64 | ErrorNotLoaded, | ||
| 65 | ErrorNotUsed, | ||
| 66 | ErrorAlreadyLoaded, | 61 | ErrorAlreadyLoaded, |
| 67 | ErrorMemoryAllocationFailed, | 62 | ErrorNotImplemented, |
| 68 | ErrorMissingKeys, | 63 | ErrorNotInitialized, |
| 69 | ErrorDecrypting, | 64 | ErrorBadNPDMHeader, |
| 70 | ErrorUnsupportedArch, | 65 | ErrorBadACIDHeader, |
| 66 | ErrorBadACIHeader, | ||
| 67 | ErrorBadFileAccessControl, | ||
| 68 | ErrorBadFileAccessHeader, | ||
| 69 | ErrorBadPFSHeader, | ||
| 70 | ErrorIncorrectPFSFileSize, | ||
| 71 | ErrorBadNCAHeader, | ||
| 72 | ErrorMissingProductionKeyFile, | ||
| 73 | ErrorMissingHeaderKey, | ||
| 74 | ErrorIncorrectHeaderKey, | ||
| 75 | ErrorNCA2, | ||
| 76 | ErrorNCA0, | ||
| 77 | ErrorMissingTitlekey, | ||
| 78 | ErrorMissingTitlekek, | ||
| 79 | ErrorInvalidRightsID, | ||
| 80 | ErrorMissingKeyAreaKey, | ||
| 81 | ErrorIncorrectKeyAreaKey, | ||
| 82 | ErrorIncorrectTitlekeyOrTitlekek, | ||
| 83 | ErrorXCIMissingProgramNCA, | ||
| 84 | ErrorNCANotProgram, | ||
| 85 | ErrorNoExeFS, | ||
| 86 | ErrorBadXCIHeader, | ||
| 87 | ErrorXCIMissingPartition, | ||
| 88 | ErrorNullFile, | ||
| 89 | ErrorMissingNPDM, | ||
| 90 | Error32BitISA, | ||
| 91 | ErrorNoRomFS, | ||
| 92 | ErrorIncorrectELFFileSize, | ||
| 93 | ErrorLoadingNRO, | ||
| 94 | ErrorNoIcon, | ||
| 95 | ErrorNoControl, | ||
| 71 | }; | 96 | }; |
| 72 | 97 | ||
| 98 | std::string GetMessageForResultStatus(ResultStatus status); | ||
| 99 | std::string GetMessageForResultStatus(u16 status); | ||
| 100 | |||
| 73 | /// Interface for loading an application | 101 | /// Interface for loading an application |
| 74 | class AppLoader : NonCopyable { | 102 | class AppLoader : NonCopyable { |
| 75 | public: | 103 | public: |