summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/errors.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-09 18:05:10 +0100
committerSubv <subv2112@gmail.com>2018-01-09 18:05:10 +0100
commita418f6e77b055b3b18aca2325c6db5705ad66bdd (patch)
treefe6a956b7553edd8c1663395211a1c4ee431709b /src/core/hle/kernel/errors.h
parentSVC: Fixed WaitSynchronization with multiple handles when at least one of them is ready. (diff)
downloadyuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.gz
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.bz2
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.lz
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.xz
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.tar.zst
yuzu-a418f6e77b055b3b18aca2325c6db5705ad66bdd.zip
Diffstat (limited to 'src/core/hle/kernel/errors.h')
-rw-r--r--src/core/hle/kernel/errors.h9
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 {
namespace ErrCodes {
enum {
+ // TODO(Subv): Remove these 3DS OS error codes.
OutOfHandles = 19,
SessionClosedByRemote = 26,
PortNameTooLong = 30,
@@ -17,6 +18,10 @@ enum {
WrongPermission = 46,
InvalidBufferDescriptor = 48,
MaxConnectionsReached = 52,
+
+ // Confirmed Switch OS error codes
+ InvalidHandle = 114,
+ Timeout = 117,
};
}
@@ -36,7 +41,7 @@ constexpr ResultCode ERR_INVALID_COMBINATION_KERNEL(-1);
constexpr ResultCode ERR_OUT_OF_MEMORY(-1);
constexpr ResultCode ERR_INVALID_ADDRESS(-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_OBJECT_ADDR(-1);
constexpr ResultCode ERR_NOT_AUTHORIZED(-1);
@@ -45,7 +50,7 @@ constexpr ResultCode ERR_INVALID_HANDLE_OS(-1);
constexpr ResultCode ERR_NOT_FOUND(-1);
constexpr ResultCode ERR_OUT_OF_RANGE(-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.
constexpr ResultCode ERR_NO_PENDING_SESSIONS(-1);