diff options
| author | 2018-08-09 21:06:44 -0400 | |
|---|---|---|
| committer | 2018-08-09 21:06:59 -0400 | |
| commit | ec3bef7b4c21931918f3a84ad79a53d31b02aeaf (patch) | |
| tree | e9da97be14d9474910faa1cfde851aa5b2383bc0 /src/core/loader/loader.h | |
| parent | Merge pull request #995 from bunnei/gl-buff-bounds (diff) | |
| download | yuzu-ec3bef7b4c21931918f3a84ad79a53d31b02aeaf.tar.gz yuzu-ec3bef7b4c21931918f3a84ad79a53d31b02aeaf.tar.xz yuzu-ec3bef7b4c21931918f3a84ad79a53d31b02aeaf.zip | |
loader: Add more descriptive errors
Full list of new errors and descriptions in core/loader/loader.h
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: |