Difference between revisions of "BOSSU:GetErrorCode"
Jump to navigation
Jump to search
(Created page with "=Request= {{IPC/Request}} {{#vardefine:ipc_offset|0}} {{IPC/RequestEntry|Header code [0x002E0040]}} {{IPC/RequestEntry|s8 input}} {{IPC/RequestEnd}} =Response= {{IPC/Request}...") |
DaniElectra (talk | contribs) m (DaniElectra moved page BOSS:GetErrorCode to BOSSU:GetErrorCode: Consistency with other pages) |
Revision as of 00:06, 31 January 2025
Request
Index Word | Description |
---|---|
0 | Header code [0x002E0040] |
1 | s8 input |
Response
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2 | u32 Output value |
Description
This loads a 16bit value from a table using the input value. This loops through the table, comparing a field in each array entry with the input. When the input value is 0x71, the output is 0xB3B1+5(0xB3B6). Otherwise when no match is found in the table and it's not 0x71, the output is 0xB3B1.
This always returns result-code 0.