Merge pull request #131 from sudachi-emu/hotfix-audio-revision

Added missing error codes and increased audio renderer revision
This commit is contained in:
Jarrod Norwell 2024-05-26 16:02:42 +08:00 committed by GitHub
commit 1723651511
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

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

View File

@ -24,6 +24,7 @@ enum class ErrorModule : u32 {
HTCS = 4,
NCM = 5,
DD = 6,
OSDBG = 7,
LR = 8,
Loader = 9,
CMIF = 10,
@ -51,6 +52,7 @@ enum class ErrorModule : u32 {
Util = 33,
TIPC = 35,
ANIF = 37,
CRT = 39,
ETHC = 100,
I2C = 101,
GPIO = 102,
@ -106,6 +108,7 @@ enum class ErrorModule : u32 {
Audio = 153,
NPNS = 154,
NPNSHTTPSTREAM = 155,
IDLE = 156,
ARP = 157,
SWKBD = 158,
BOOT = 159,
@ -115,6 +118,7 @@ enum class ErrorModule : u32 {
Fatal = 163,
NIMShop = 164,
SPSM = 165,
AOC = 166,
BGTC = 167,
UserlandCrash = 168,
SASBUS = 169,
@ -176,13 +180,22 @@ enum class ErrorModule : u32 {
DP2HDMI = 244,
Cradle = 245,
SProfile = 246,
Icm42607p = 248,
NDRM = 250,
Fst2 = 251,
Nex = 306,
NPLN = 321,
TSPM = 499,
DevMenu = 500,
Nverpt = 520,
Am_StuckMonitor = 521,
Pia = 618,
Eagle = 623,
GeneralWebApplet = 800,
WifiWebAuthApplet = 809,
WhitelistedApplet = 810,
ShopN = 811,
Coral = 815
};
/// Encapsulates a Horizon OS error code, allowing it to be separated into its constituent fields.