Added missing error codes and increased audio renderer revision (fixes Animal Well)

This commit is contained in:
Jarrod Norwell 2024-05-26 16:01:34 +08:00
parent f627a085d3
commit 1ad7a253eb
2 changed files with 15 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#include "common/polyfill_ranges.h" #include "common/polyfill_ranges.h"
namespace AudioCore { namespace AudioCore {
constexpr u32 CurrentRevision = 11; constexpr u32 CurrentRevision = 12; // 11
enum class SupportTags { enum class SupportTags {
CommandProcessingTimeEstimatorVersion4, CommandProcessingTimeEstimatorVersion4,
@ -54,6 +54,7 @@ constexpr u32 GetRevisionNum(u32 user_revision) {
user_revision -= Common::MakeMagic('R', 'E', 'V', '0'); user_revision -= Common::MakeMagic('R', 'E', 'V', '0');
user_revision >>= 24; user_revision >>= 24;
} }
return user_revision; return user_revision;
}; };

View File

@ -24,6 +24,7 @@ enum class ErrorModule : u32 {
HTCS = 4, HTCS = 4,
NCM = 5, NCM = 5,
DD = 6, DD = 6,
OSDBG = 7,
LR = 8, LR = 8,
Loader = 9, Loader = 9,
CMIF = 10, CMIF = 10,
@ -51,6 +52,7 @@ enum class ErrorModule : u32 {
Util = 33, Util = 33,
TIPC = 35, TIPC = 35,
ANIF = 37, ANIF = 37,
CRT = 39,
ETHC = 100, ETHC = 100,
I2C = 101, I2C = 101,
GPIO = 102, GPIO = 102,
@ -106,6 +108,7 @@ enum class ErrorModule : u32 {
Audio = 153, Audio = 153,
NPNS = 154, NPNS = 154,
NPNSHTTPSTREAM = 155, NPNSHTTPSTREAM = 155,
IDLE = 156,
ARP = 157, ARP = 157,
SWKBD = 158, SWKBD = 158,
BOOT = 159, BOOT = 159,
@ -115,6 +118,7 @@ enum class ErrorModule : u32 {
Fatal = 163, Fatal = 163,
NIMShop = 164, NIMShop = 164,
SPSM = 165, SPSM = 165,
AOC = 166,
BGTC = 167, BGTC = 167,
UserlandCrash = 168, UserlandCrash = 168,
SASBUS = 169, SASBUS = 169,
@ -176,13 +180,22 @@ enum class ErrorModule : u32 {
DP2HDMI = 244, DP2HDMI = 244,
Cradle = 245, Cradle = 245,
SProfile = 246, SProfile = 246,
Icm42607p = 248,
NDRM = 250, NDRM = 250,
Fst2 = 251,
Nex = 306,
NPLN = 321,
TSPM = 499, TSPM = 499,
DevMenu = 500, DevMenu = 500,
Nverpt = 520,
Am_StuckMonitor = 521,
Pia = 618,
Eagle = 623,
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.