diff options
| author | 2018-01-09 12:05:10 -0500 | |
|---|---|---|
| committer | 2018-01-09 12:05:10 -0500 | |
| commit | a418f6e77b055b3b18aca2325c6db5705ad66bdd (patch) | |
| tree | fe6a956b7553edd8c1663395211a1c4ee431709b /src/core/hle/kernel | |
| parent | SVC: Fixed WaitSynchronization with multiple handles when at least one of the... (diff) | |
| download | yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.gz yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.xz yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.zip | |
ErrorCodes: Updated the InvalidHandle and Timeout kernel error codes.
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/errors.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/hle/kernel/errors.h b/src/core/hle/kernel/errors.h index df182efda..c963d7e9a 100644 --- a/src/core/hle/kernel/errors.h +++ b/src/core/hle/kernel/errors.h | |||
| @@ -10,6 +10,7 @@ namespace Kernel { | |||
| 10 | 10 | ||
| 11 | namespace ErrCodes { | 11 | namespace ErrCodes { |
| 12 | enum { | 12 | enum { |
| 13 | // TODO(Subv): Remove these 3DS OS error codes. | ||
| 13 | OutOfHandles = 19, | 14 | OutOfHandles = 19, |
| 14 | SessionClosedByRemote = 26, | 15 | SessionClosedByRemote = 26, |
| 15 | PortNameTooLong = 30, | 16 | PortNameTooLong = 30, |
| @@ -17,6 +18,10 @@ enum { | |||
| 17 | WrongPermission = 46, | 18 | WrongPermission = 46, |
| 18 | InvalidBufferDescriptor = 48, | 19 | InvalidBufferDescriptor = 48, |
| 19 | MaxConnectionsReached = 52, | 20 | MaxConnectionsReached = 52, |
| 21 | |||
| 22 | // Confirmed Switch OS error codes | ||
| 23 | InvalidHandle = 114, | ||
| 24 | Timeout = 117, | ||
| 20 | }; | 25 | }; |
| 21 | } | 26 | } |
| 22 | 27 | ||
| @@ -36,7 +41,7 @@ constexpr ResultCode ERR_INVALID_COMBINATION_KERNEL(-1); | |||
| 36 | constexpr ResultCode ERR_OUT_OF_MEMORY(-1); | 41 | constexpr ResultCode ERR_OUT_OF_MEMORY(-1); |
| 37 | constexpr ResultCode ERR_INVALID_ADDRESS(-1); | 42 | constexpr ResultCode ERR_INVALID_ADDRESS(-1); |
| 38 | constexpr ResultCode ERR_INVALID_ADDRESS_STATE(-1); | 43 | constexpr ResultCode ERR_INVALID_ADDRESS_STATE(-1); |
| 39 | constexpr ResultCode ERR_INVALID_HANDLE(-1); | 44 | constexpr ResultCode ERR_INVALID_HANDLE(ErrorModule::Kernel, ErrCodes::InvalidHandle); |
| 40 | constexpr ResultCode ERR_INVALID_POINTER(-1); | 45 | constexpr ResultCode ERR_INVALID_POINTER(-1); |
| 41 | constexpr ResultCode ERR_INVALID_OBJECT_ADDR(-1); | 46 | constexpr ResultCode ERR_INVALID_OBJECT_ADDR(-1); |
| 42 | constexpr ResultCode ERR_NOT_AUTHORIZED(-1); | 47 | constexpr ResultCode ERR_NOT_AUTHORIZED(-1); |
| @@ -45,7 +50,7 @@ constexpr ResultCode ERR_INVALID_HANDLE_OS(-1); | |||
| 45 | constexpr ResultCode ERR_NOT_FOUND(-1); | 50 | constexpr ResultCode ERR_NOT_FOUND(-1); |
| 46 | constexpr ResultCode ERR_OUT_OF_RANGE(-1); | 51 | constexpr ResultCode ERR_OUT_OF_RANGE(-1); |
| 47 | constexpr ResultCode ERR_OUT_OF_RANGE_KERNEL(-1); | 52 | constexpr ResultCode ERR_OUT_OF_RANGE_KERNEL(-1); |
| 48 | constexpr ResultCode RESULT_TIMEOUT(-1); | 53 | constexpr ResultCode RESULT_TIMEOUT(ErrorModule::Kernel, ErrCodes::Timeout); |
| 49 | /// Returned when Accept() is called on a port with no sessions to be accepted. | 54 | /// Returned when Accept() is called on a port with no sessions to be accepted. |
| 50 | constexpr ResultCode ERR_NO_PENDING_SESSIONS(-1); | 55 | constexpr ResultCode ERR_NO_PENDING_SESSIONS(-1); |
| 51 | 56 | ||