BOSSU:GetErrorCode

Revision as of 00:41, 8 February 2025 by DaniElectra (talk | contribs) (Use IPC template header)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RequestEdit

Index Word Description
0
Header 0x002E0040 Cmd 0x002E Param 1 Xlat 0
1 u8, TaskResultCode

ResponseEdit

Index Word Description
0
Header 0x002E0080 Cmd 0x002E Param 2 Xlat 0
1 Result code
2 u32, Error code

DescriptionEdit

Converts the given task result code into an error code (004-XXXX). The returned value is an integer 004XXXX.

The error code is looked up in a table. When the input value is 0x71, the output is 46001+5 (004-6006). Otherwise when no match is found in the table and it's not 0x71, the error code is 004-6001.

This always returns result code 0.