Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
a418f6e7
There was an error fetching the commit references. Please try again later.
Commit
a418f6e7
authored
7 years ago
by
Subv
Browse files
Options
Downloads
Patches
Plain Diff
ErrorCodes: Updated the InvalidHandle and Timeout kernel error codes.
parent
8d9250fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/hle/kernel/errors.h
+7
-2
7 additions, 2 deletions
src/core/hle/kernel/errors.h
with
7 additions
and
2 deletions
src/core/hle/kernel/errors.h
+
7
−
2
View file @
a418f6e7
...
@@ -10,6 +10,7 @@ namespace Kernel {
...
@@ -10,6 +10,7 @@ namespace Kernel {
namespace
ErrCodes
{
namespace
ErrCodes
{
enum
{
enum
{
// TODO(Subv): Remove these 3DS OS error codes.
OutOfHandles
=
19
,
OutOfHandles
=
19
,
SessionClosedByRemote
=
26
,
SessionClosedByRemote
=
26
,
PortNameTooLong
=
30
,
PortNameTooLong
=
30
,
...
@@ -17,6 +18,10 @@ enum {
...
@@ -17,6 +18,10 @@ enum {
WrongPermission
=
46
,
WrongPermission
=
46
,
InvalidBufferDescriptor
=
48
,
InvalidBufferDescriptor
=
48
,
MaxConnectionsReached
=
52
,
MaxConnectionsReached
=
52
,
// Confirmed Switch OS error codes
InvalidHandle
=
114
,
Timeout
=
117
,
};
};
}
}
...
@@ -36,7 +41,7 @@ constexpr ResultCode ERR_INVALID_COMBINATION_KERNEL(-1);
...
@@ -36,7 +41,7 @@ constexpr ResultCode ERR_INVALID_COMBINATION_KERNEL(-1);
constexpr
ResultCode
ERR_OUT_OF_MEMORY
(
-
1
);
constexpr
ResultCode
ERR_OUT_OF_MEMORY
(
-
1
);
constexpr
ResultCode
ERR_INVALID_ADDRESS
(
-
1
);
constexpr
ResultCode
ERR_INVALID_ADDRESS
(
-
1
);
constexpr
ResultCode
ERR_INVALID_ADDRESS_STATE
(
-
1
);
constexpr
ResultCode
ERR_INVALID_ADDRESS_STATE
(
-
1
);
constexpr
ResultCode
ERR_INVALID_HANDLE
(
-
1
);
constexpr
ResultCode
ERR_INVALID_HANDLE
(
ErrorModule
::
Kernel
,
ErrCodes
::
InvalidHandle
);
constexpr
ResultCode
ERR_INVALID_POINTER
(
-
1
);
constexpr
ResultCode
ERR_INVALID_POINTER
(
-
1
);
constexpr
ResultCode
ERR_INVALID_OBJECT_ADDR
(
-
1
);
constexpr
ResultCode
ERR_INVALID_OBJECT_ADDR
(
-
1
);
constexpr
ResultCode
ERR_NOT_AUTHORIZED
(
-
1
);
constexpr
ResultCode
ERR_NOT_AUTHORIZED
(
-
1
);
...
@@ -45,7 +50,7 @@ constexpr ResultCode ERR_INVALID_HANDLE_OS(-1);
...
@@ -45,7 +50,7 @@ constexpr ResultCode ERR_INVALID_HANDLE_OS(-1);
constexpr
ResultCode
ERR_NOT_FOUND
(
-
1
);
constexpr
ResultCode
ERR_NOT_FOUND
(
-
1
);
constexpr
ResultCode
ERR_OUT_OF_RANGE
(
-
1
);
constexpr
ResultCode
ERR_OUT_OF_RANGE
(
-
1
);
constexpr
ResultCode
ERR_OUT_OF_RANGE_KERNEL
(
-
1
);
constexpr
ResultCode
ERR_OUT_OF_RANGE_KERNEL
(
-
1
);
constexpr
ResultCode
RESULT_TIMEOUT
(
-
1
);
constexpr
ResultCode
RESULT_TIMEOUT
(
ErrorModule
::
Kernel
,
ErrCodes
::
Timeout
);
/// Returned when Accept() is called on a port with no sessions to be accepted.
/// Returned when Accept() is called on a port with no sessions to be accepted.
constexpr
ResultCode
ERR_NO_PENDING_SESSIONS
(
-
1
);
constexpr
ResultCode
ERR_NO_PENDING_SESSIONS
(
-
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment