summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-25 06:15:58 -0400
committerGravatar Lioncash2018-08-25 09:40:42 -0400
commitf708207ae6209229de0bde1c5c6a43d7345575d0 (patch)
tree344eec7b86a22217ab7048d4c1285b01b44f8b5d /src/core/hle/kernel
parentkernel/error: Amend error code for ERR_PORT_NAME_TOO_LONG (diff)
downloadyuzu-f708207ae6209229de0bde1c5c6a43d7345575d0.tar.gz
yuzu-f708207ae6209229de0bde1c5c6a43d7345575d0.tar.xz
yuzu-f708207ae6209229de0bde1c5c6a43d7345575d0.zip
kernel/error: Amend error code for ERR_MAX_CONNECTIONS_REACHED
We can make this error code an alias of the resource limit exceeded error code, allowing us to get rid of the lingering 3DS error code of the same type.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/errors.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/errors.h b/src/core/hle/kernel/errors.h
index a2df8e2e8..4054d5db6 100644
--- a/src/core/hle/kernel/errors.h
+++ b/src/core/hle/kernel/errors.h
@@ -14,9 +14,9 @@ enum {
14 SessionClosedByRemote = 26, 14 SessionClosedByRemote = 26,
15 NoPendingSessions = 35, 15 NoPendingSessions = 35,
16 InvalidBufferDescriptor = 48, 16 InvalidBufferDescriptor = 48,
17 MaxConnectionsReached = 52,
18 17
19 // Confirmed Switch OS error codes 18 // Confirmed Switch OS error codes
19 MaxConnectionsReached = 7,
20 InvalidAddress = 102, 20 InvalidAddress = 102,
21 HandleTableFull = 105, 21 HandleTableFull = 105,
22 InvalidMemoryState = 106, 22 InvalidMemoryState = 106,
@@ -29,6 +29,7 @@ enum {
29 TooLarge = 119, 29 TooLarge = 119,
30 InvalidEnumValue = 120, 30 InvalidEnumValue = 120,
31 InvalidState = 125, 31 InvalidState = 125,
32 ResourceLimitExceeded = 132,
32}; 33};
33} 34}
34 35
@@ -39,7 +40,8 @@ enum {
39constexpr ResultCode ERR_HANDLE_TABLE_FULL(ErrorModule::Kernel, ErrCodes::HandleTableFull); 40constexpr ResultCode ERR_HANDLE_TABLE_FULL(ErrorModule::Kernel, ErrCodes::HandleTableFull);
40constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE(-1); 41constexpr ResultCode ERR_SESSION_CLOSED_BY_REMOTE(-1);
41constexpr ResultCode ERR_PORT_NAME_TOO_LONG(ErrorModule::Kernel, ErrCodes::TooLarge); 42constexpr ResultCode ERR_PORT_NAME_TOO_LONG(ErrorModule::Kernel, ErrCodes::TooLarge);
42constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(-1); 43constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(ErrorModule::Kernel,
44 ErrCodes::MaxConnectionsReached);
43constexpr ResultCode ERR_INVALID_ENUM_VALUE(ErrorModule::Kernel, ErrCodes::InvalidEnumValue); 45constexpr ResultCode ERR_INVALID_ENUM_VALUE(ErrorModule::Kernel, ErrCodes::InvalidEnumValue);
44constexpr ResultCode ERR_INVALID_ENUM_VALUE_FND(-1); 46constexpr ResultCode ERR_INVALID_ENUM_VALUE_FND(-1);
45constexpr ResultCode ERR_INVALID_COMBINATION(-1); 47constexpr ResultCode ERR_INVALID_COMBINATION(-1);