summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-10-24 13:38:34 -0400
committerGravatar Lioncash2018-10-24 13:38:39 -0400
commit6df09f5b7639747d9d36f0f54f785277974e6abe (patch)
tree52f8fe2f72c926eda2aabe41aa0260ef46e6bd18 /src/core
parentMerge pull request #1468 from DarkLordZach/profile-manager-ui (diff)
downloadyuzu-6df09f5b7639747d9d36f0f54f785277974e6abe.tar.gz
yuzu-6df09f5b7639747d9d36f0f54f785277974e6abe.tar.xz
yuzu-6df09f5b7639747d9d36f0f54f785277974e6abe.zip
kernel/error: Add error code for closed sessions
The kernel appears to return 0xF601 for this case.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/errors.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/errors.h b/src/core/hle/kernel/errors.h
index 885259618..c87cdfa64 100644
--- a/src/core/hle/kernel/errors.h
+++ b/src/core/hle/kernel/errors.h
@@ -26,6 +26,7 @@ enum {
26 InvalidThreadPriority = 112, 26 InvalidThreadPriority = 112,
27 InvalidProcessorId = 113, 27 InvalidProcessorId = 113,
28 InvalidHandle = 114, 28 InvalidHandle = 114,
29 InvalidPointer = 115,
29 InvalidCombination = 116, 30 InvalidCombination = 116,
30 Timeout = 117, 31 Timeout = 117,
31 SynchronizationCanceled = 118, 32 SynchronizationCanceled = 118,
@@ -33,6 +34,7 @@ enum {
33 InvalidEnumValue = 120, 34 InvalidEnumValue = 120,
34 NoSuchEntry = 121, 35 NoSuchEntry = 121,
35 AlreadyRegistered = 122, 36 AlreadyRegistered = 122,
37 SessionClosed = 123,
36 InvalidState = 125, 38 InvalidState = 125,
37 ResourceLimitExceeded = 132, 39 ResourceLimitExceeded = 132,
38}; 40};
@@ -43,7 +45,7 @@ enum {
43 45
44// TODO(bunnei): Replace -1 with correct errors for Switch OS 46// TODO(bunnei): Replace -1 with correct errors for Switch OS
45constexpr ResultCode ERR_HANDLE_TABLE_FULL(ErrorModule::Kernel, ErrCodes::HandleTableFull); 47constexpr ResultCode ERR_HANDLE_TABLE_FULL(ErrorModule::Kernel, ErrCodes::HandleTableFull);
46constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE(-1); 48constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE(ErrorModule::Kernel, ErrCodes::SessionClosed);
47constexpr ResultCode ERR_PORT_NAME_TOO_LONG(ErrorModule::Kernel, ErrCodes::TooLarge); 49constexpr ResultCode ERR_PORT_NAME_TOO_LONG(ErrorModule::Kernel, ErrCodes::TooLarge);
48constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(ErrorModule::Kernel, 50constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(ErrorModule::Kernel,
49 ErrCodes::MaxConnectionsReached); 51 ErrCodes::MaxConnectionsReached);