Browse Source
[core] Sync Error Codes
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
pull/3161/head
Caio Oliveira
2 weeks ago
No known key found for this signature in database
GPG Key ID: 362DA3DC1901E080
1 changed files with
23 additions and
7 deletions
-
src/core/hle/result.h
|
|
@ -12,7 +12,7 @@ |
|
|
#include "common/common_types.h" |
|
|
#include "common/common_types.h" |
|
|
#include "common/expected.h" |
|
|
#include "common/expected.h" |
|
|
|
|
|
|
|
|
// All the constants in this file come from http://switchbrew.org/index.php?title=Error_codes |
|
|
|
|
|
|
|
|
// All the constants in this file come from <https://switchbrew.org/w/index.php?title=Error_codes> |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Identifies the module which caused the error. Error codes can be propagated through a call |
|
|
* Identifies the module which caused the error. Error codes can be propagated through a call |
|
|
@ -87,6 +87,7 @@ enum class ErrorModule : u32 { |
|
|
AM = 128, |
|
|
AM = 128, |
|
|
PlayReport = 129, |
|
|
PlayReport = 129, |
|
|
AHID = 130, |
|
|
AHID = 130, |
|
|
|
|
|
APPLET = 131, |
|
|
Qlaunch = 132, |
|
|
Qlaunch = 132, |
|
|
PCV = 133, |
|
|
PCV = 133, |
|
|
USBPD = 134, |
|
|
USBPD = 134, |
|
|
@ -113,8 +114,8 @@ enum class ErrorModule : u32 { |
|
|
NPNSHTTPSTREAM = 155, |
|
|
NPNSHTTPSTREAM = 155, |
|
|
IDLE = 156, |
|
|
IDLE = 156, |
|
|
ARP = 157, |
|
|
ARP = 157, |
|
|
SWKBD = 158, |
|
|
|
|
|
BOOT = 159, |
|
|
|
|
|
|
|
|
UPDATER = 158, |
|
|
|
|
|
SWKBD = 159, |
|
|
NetDiag = 160, |
|
|
NetDiag = 160, |
|
|
NFCMifare = 161, |
|
|
NFCMifare = 161, |
|
|
UserlandAssert = 162, |
|
|
UserlandAssert = 162, |
|
|
@ -125,7 +126,8 @@ enum class ErrorModule : u32 { |
|
|
BGTC = 167, |
|
|
BGTC = 167, |
|
|
UserlandCrash = 168, |
|
|
UserlandCrash = 168, |
|
|
SASBUS = 169, |
|
|
SASBUS = 169, |
|
|
PI = 170, |
|
|
|
|
|
|
|
|
PL = 170, |
|
|
|
|
|
CDMSC = 171, |
|
|
AudioCtrl = 172, |
|
|
AudioCtrl = 172, |
|
|
LBL = 173, |
|
|
LBL = 173, |
|
|
JIT = 175, |
|
|
JIT = 175, |
|
|
@ -137,23 +139,30 @@ enum class ErrorModule : u32 { |
|
|
Dauth = 181, |
|
|
Dauth = 181, |
|
|
STDFU = 182, |
|
|
STDFU = 182, |
|
|
DBG = 183, |
|
|
DBG = 183, |
|
|
|
|
|
CDACM = 184, |
|
|
|
|
|
TCAP = 185, |
|
|
DHCPS = 186, |
|
|
DHCPS = 186, |
|
|
SPI = 187, |
|
|
SPI = 187, |
|
|
AVM = 188, |
|
|
AVM = 188, |
|
|
PWM = 189, |
|
|
PWM = 189, |
|
|
|
|
|
DNSServer = 190, |
|
|
RTC = 191, |
|
|
RTC = 191, |
|
|
Regulator = 192, |
|
|
Regulator = 192, |
|
|
LED = 193, |
|
|
LED = 193, |
|
|
|
|
|
HTCTool = 194, |
|
|
SIO = 195, |
|
|
SIO = 195, |
|
|
PCM = 196, |
|
|
PCM = 196, |
|
|
CLKRST = 197, |
|
|
CLKRST = 197, |
|
|
POWCTL = 198, |
|
|
POWCTL = 198, |
|
|
|
|
|
HIDDriver = 199, |
|
|
|
|
|
DMA = 200, |
|
|
AudioOld = 201, |
|
|
AudioOld = 201, |
|
|
HID = 202, |
|
|
HID = 202, |
|
|
LDN = 203, |
|
|
LDN = 203, |
|
|
CS = 204, |
|
|
CS = 204, |
|
|
Irsensor = 205, |
|
|
Irsensor = 205, |
|
|
Capture = 206, |
|
|
Capture = 206, |
|
|
|
|
|
MM = 207, |
|
|
Manu = 208, |
|
|
Manu = 208, |
|
|
ATK = 209, |
|
|
ATK = 209, |
|
|
WEB = 210, |
|
|
WEB = 210, |
|
|
@ -166,19 +175,24 @@ enum class ErrorModule : u32 { |
|
|
MigrationLdcServ = 217, |
|
|
MigrationLdcServ = 217, |
|
|
HIDBUS = 218, |
|
|
HIDBUS = 218, |
|
|
ENS = 219, |
|
|
ENS = 219, |
|
|
|
|
|
ND = 220, |
|
|
|
|
|
NDD = 221, |
|
|
|
|
|
ToyCon = 222, |
|
|
WebSocket = 223, |
|
|
WebSocket = 223, |
|
|
|
|
|
SocketIO = 224, |
|
|
DCDMTP = 227, |
|
|
DCDMTP = 227, |
|
|
PGL = 228, |
|
|
PGL = 228, |
|
|
Notification = 229, |
|
|
Notification = 229, |
|
|
INS = 230, |
|
|
INS = 230, |
|
|
LP2P = 231, |
|
|
LP2P = 231, |
|
|
RCD = 232, |
|
|
RCD = 232, |
|
|
LCM40607 = 233, |
|
|
|
|
|
|
|
|
ICM40607 = 233, |
|
|
PRC = 235, |
|
|
PRC = 235, |
|
|
TMAHTC = 237, |
|
|
|
|
|
ECTX = 238, |
|
|
|
|
|
|
|
|
BridgeCtrl = 237, |
|
|
|
|
|
Err_Context = 238, |
|
|
MNPP = 239, |
|
|
MNPP = 239, |
|
|
HSHL = 240, |
|
|
HSHL = 240, |
|
|
|
|
|
RINGCON = 241, |
|
|
CAPMTP = 242, |
|
|
CAPMTP = 242, |
|
|
DP2HDMI = 244, |
|
|
DP2HDMI = 244, |
|
|
Cradle = 245, |
|
|
Cradle = 245, |
|
|
@ -187,6 +201,8 @@ enum class ErrorModule : u32 { |
|
|
NDRM = 250, |
|
|
NDRM = 250, |
|
|
Fst2 = 251, |
|
|
Fst2 = 251, |
|
|
Nex = 306, |
|
|
Nex = 306, |
|
|
|
|
|
TS = 253, |
|
|
|
|
|
SPLAY = 260, |
|
|
NPLN = 321, |
|
|
NPLN = 321, |
|
|
TSPM = 499, |
|
|
TSPM = 499, |
|
|
DevMenu = 500, |
|
|
DevMenu = 500, |
|
|
|