mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 13:39:59 +00:00
kernel/error: Add error code for closed sessions
The kernel appears to return 0xF601 for this case.
This commit is contained in:
parent
77e705a8fa
commit
6df09f5b76
1 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,7 @@ enum {
|
||||||
InvalidThreadPriority = 112,
|
InvalidThreadPriority = 112,
|
||||||
InvalidProcessorId = 113,
|
InvalidProcessorId = 113,
|
||||||
InvalidHandle = 114,
|
InvalidHandle = 114,
|
||||||
|
InvalidPointer = 115,
|
||||||
InvalidCombination = 116,
|
InvalidCombination = 116,
|
||||||
Timeout = 117,
|
Timeout = 117,
|
||||||
SynchronizationCanceled = 118,
|
SynchronizationCanceled = 118,
|
||||||
|
@ -33,6 +34,7 @@ enum {
|
||||||
InvalidEnumValue = 120,
|
InvalidEnumValue = 120,
|
||||||
NoSuchEntry = 121,
|
NoSuchEntry = 121,
|
||||||
AlreadyRegistered = 122,
|
AlreadyRegistered = 122,
|
||||||
|
SessionClosed = 123,
|
||||||
InvalidState = 125,
|
InvalidState = 125,
|
||||||
ResourceLimitExceeded = 132,
|
ResourceLimitExceeded = 132,
|
||||||
};
|
};
|
||||||
|
@ -43,7 +45,7 @@ enum {
|
||||||
|
|
||||||
// TODO(bunnei): Replace -1 with correct errors for Switch OS
|
// TODO(bunnei): Replace -1 with correct errors for Switch OS
|
||||||
constexpr ResultCode ERR_HANDLE_TABLE_FULL(ErrorModule::Kernel, ErrCodes::HandleTableFull);
|
constexpr ResultCode ERR_HANDLE_TABLE_FULL(ErrorModule::Kernel, ErrCodes::HandleTableFull);
|
||||||
constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE(-1);
|
constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE(ErrorModule::Kernel, ErrCodes::SessionClosed);
|
||||||
constexpr ResultCode ERR_PORT_NAME_TOO_LONG(ErrorModule::Kernel, ErrCodes::TooLarge);
|
constexpr ResultCode ERR_PORT_NAME_TOO_LONG(ErrorModule::Kernel, ErrCodes::TooLarge);
|
||||||
constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(ErrorModule::Kernel,
|
constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(ErrorModule::Kernel,
|
||||||
ErrCodes::MaxConnectionsReached);
|
ErrCodes::MaxConnectionsReached);
|
||||||
|
|
Loading…
Reference in a new issue