NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
dvderror.h
1#ifndef RVL_SDK_DVD_ERROR_H
2#define RVL_SDK_DVD_ERROR_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef void (*DVDErrorCallback)(s32 result, s32 arg1);
9
10#define DVD_ERROR_CMD_MAX 5
11
12typedef struct DVDErrorInfo {
13 char game[4]; // at 0x0
14 u8 disk; // at 0x4
15 u8 version; // at 0x5
16 u32 error; // at 0x8
17 s32 sec; // at 0xC
18 u32 disr; // at 0x10
19 u32 dicr; // at 0x14
20 u32 next; // at 0x18
21
22 struct {
23 u32 command; // at 0x1C
24 u32 param1; // at 0x20
25 u32 param2; // at 0x24
26 u32 intType; // at 0x28
27 u32 tick; // at 0x2C
28 } info[DVD_ERROR_CMD_MAX];
30
31extern DVDErrorInfo __ErrorInfo;
32
33void __DVDStoreErrorCode(u32 error, DVDErrorCallback callback);
34
35#ifdef __cplusplus
36}
37#endif
38#endif