Revert "core/hle: Reorganize ErrorModule enum numerically"

This reverts commit b55be320b7.
This commit is contained in:
Zephyron 2025-01-25 18:24:30 +10:00
parent b55be320b7
commit 924c06d88f

View file

@ -17,239 +17,172 @@
* contained. * contained.
*/ */
enum class ErrorModule : u32 { enum class ErrorModule : u32 {
// 0-9
Common = 0, Common = 0,
Svc = 1, Kernel = 1,
Fs = 2, FS = 2,
Os = 3, OS = 3, // used for Memory, Thread, Mutex, Nvidia
Htcs = 4, HTCS = 4,
Ncm = 5, NCM = 5,
Dd = 6, DD = 6,
Osdbg = 7, LR = 8,
Lr = 8, Loader = 9,
Ldr = 9, CMIF = 10,
HIPC = 11,
// 10-19 TMA = 12,
Sf = 10, DMNT = 13,
SfHipc = 11, GDS = 14,
Tma = 12, PM = 15,
Dmnt = 13, NS = 16,
Gds = 14, BSDSockets = 17,
Pm = 15, HTC = 18,
Ns = 16, TSC = 19,
BsdSockets = 17, NCMContent = 20,
Htc = 18, SM = 21,
Tsc = 19, RO = 22,
GC = 23,
// 20-29 SDMMC = 24,
Kvdb = 20, OVLN = 25,
Sm = 21, SPL = 26,
Ro = 22,
Gc = 23,
Sdmmc = 24,
Ovln = 25,
Spl = 26,
Socket = 27, Socket = 27,
Htclow = 29, HTCLOW = 29,
DDSF = 30,
// 30-39 HTCFS = 31,
Ddsf = 30,
Htcfs = 31,
Async = 32, Async = 32,
Util = 33, Util = 33,
Tipc = 35, TIPC = 35,
Anif = 37, ANIF = 37,
Crt = 39, ETHC = 100,
I2C = 101,
// 100-109 GPIO = 102,
Eth = 100, UART = 103,
I2c = 101, CPAD = 104,
Gpio = 102,
Uart = 103,
Cpad = 104,
Settings = 105, Settings = 105,
Ftm = 106, FTM = 106,
Wlan = 107, WLAN = 107,
Xcd = 108, XCD = 108,
Tmp451 = 109, TMP451 = 109,
NIFM = 110,
// 110-119 HwOpus = 111,
Nifm = 110, LSM6DS3 = 112,
Codec = 111,
Lsm6ds3 = 112,
Bluetooth = 113, Bluetooth = 113,
Vi = 114, VI = 114,
Nfp = 115, NFP = 115,
Time = 116, Time = 116,
Fgm = 117, FGM = 117,
Oe = 118, OE = 118,
Bh1730fvc = 119, BH1730FVC = 119,
PCIe = 120,
// 120-129
Pcie = 120,
Friends = 121, Friends = 121,
Bcat = 122, BCAT = 122,
Ssl = 123, SSLSrv = 123,
Account = 124, Account = 124,
News = 125, News = 125,
Mii = 126, Mii = 126,
Nfc = 127, NFC = 127,
Am = 128, AM = 128,
Prepo = 129, PlayReport = 129,
AHID = 130,
// 130-139 Qlaunch = 132,
Ahid = 130, PCV = 133,
Applet = 131, USBPD = 134,
Ae = 132, BPC = 135,
Pcv = 133, PSM = 136,
UsbPd = 134, NIM = 137,
Bpc = 135, PSC = 138,
Psm = 136, TC = 139,
Nim = 137, USB = 140,
Psc = 138, NSD = 141,
Tc = 139, PCTL = 142,
BTM = 143,
// 140-149 LA = 144,
Usb = 140, ETicket = 145,
Nsd = 141, NGC = 146,
Pctl = 142, ERPT = 147,
Btm = 143, APM = 148,
La = 144, CEC = 149,
Es = 145,
Ngc = 146,
Erpt = 147,
Apm = 148,
Cec = 149,
// 150-159
Profiler = 150, Profiler = 150,
Eupld = 151, ErrorUpload = 151,
Lidbe = 152, LIDBE = 152,
Audio = 153, Audio = 153,
Npns = 154, NPNS = 154,
Http = 155, NPNSHTTPSTREAM = 155,
Idle = 156, ARP = 157,
Arp = 157, SWKBD = 158,
Updater = 158, BOOT = 159,
Swkbd = 159, NetDiag = 160,
NFCMifare = 161,
// 160-169 UserlandAssert = 162,
Netdiag = 160,
NfcMifare = 161,
Err = 162,
Fatal = 163, Fatal = 163,
Ec = 164, NIMShop = 164,
Spsm = 165, SPSM = 165,
Aoc = 166, BGTC = 167,
Bgtc = 167, UserlandCrash = 168,
Creport = 168, SASBUS = 169,
Sasbus = 169, PI = 170,
AudioCtrl = 172,
// 170-179 LBL = 173,
Pl = 170, JIT = 175,
Audioctrl = 172, HDCP = 176,
Lbl = 173, OMM = 177,
Jit = 175, PDM = 178,
Hdcp = 176, OLSC = 179,
Omm = 177, SREPO = 180,
Pdm = 178,
Olsc = 179,
// 180-189
Srepo = 180,
Dauth = 181, Dauth = 181,
Stdfu = 182, STDFU = 182,
Dbg = 183, DBG = 183,
Dhcps = 186, DHCPS = 186,
Spi = 187, SPI = 187,
Avm = 188, AVM = 188,
Pwm = 189, PWM = 189,
RTC = 191,
// 190-199
Rtc = 191,
Regulator = 192, Regulator = 192,
Led = 193, LED = 193,
Sio = 195, SIO = 195,
Pcm = 196, PCM = 196,
Clkrst = 197, CLKRST = 197,
Powctl = 198, POWCTL = 198,
// 200-209
AudioOld = 201, AudioOld = 201,
Hid = 202, HID = 202,
Ldn = 203, LDN = 203,
Cs = 204, CS = 204,
Irsensor = 205, Irsensor = 205,
Capsrv = 206, Capture = 206,
Manu = 208, Manu = 208,
Atk = 209, ATK = 209,
WEB = 210,
// 210-219 LCS = 211,
Web = 210, GRC = 212,
Lcs = 211,
Grc = 212,
Repair = 213, Repair = 213,
Album = 214, Album = 214,
Rid = 215, RID = 215,
Migration = 216, Migration = 216,
MigrationIdc = 217, MigrationLdcServ = 217,
Hidbus = 218, HIDBUS = 218,
Ens = 219, ENS = 219,
WebSocket = 223,
// 220-229 DCDMTP = 227,
Websocket = 223, PGL = 228,
Dcdmtp = 227,
Pgl = 228,
Notification = 229, Notification = 229,
INS = 230,
// 230-239 LP2P = 231,
Ins = 230, RCD = 232,
Lp2p = 231, LCM40607 = 233,
Rcd = 232, PRC = 235,
Icm40607 = 233, TMAHTC = 237,
Prc = 235, ECTX = 238,
TmaHtc = 237, MNPP = 239,
Ectx = 238, HSHL = 240,
Mnpp = 239, CAPMTP = 242,
DP2HDMI = 244,
// 240-249
Hshl = 240,
Capmtp = 242,
Dp2hdmi = 244,
Cradle = 245, Cradle = 245,
Sprofile = 246, SProfile = 246,
NDRM = 250,
// 250-299 TSPM = 499,
Ndrm = 250, DevMenu = 500,
Fst2 = 251,
Nex = 306,
// 300-399
Npln = 321,
LibNx = 345,
HomebrewAbi = 346,
HomebrewLoader = 347,
LibNxNvidia = 348,
LibNxBinder = 349,
// 400-499
Tspm = 499,
// 500-599
Devmenu = 500,
Nverpt = 520,
AmStuckMonitor = 521,
// 600-699
Pia = 618,
Eagle = 623,
// 800-899
GeneralWebApplet = 800, GeneralWebApplet = 800,
WifiWebAuthApplet = 809, WifiWebAuthApplet = 809,
WhitelistedApplet = 810, WhitelistedApplet = 810,
ShopN = 811, ShopN = 811,
Coral = 815,
}; };
/// Encapsulates a Horizon OS error code, allowing it to be separated into its constituent fields. /// Encapsulates a Horizon OS error code, allowing it to be separated into its constituent fields.