NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
OSReset.h
1#ifndef RVL_SDK_OS_RESET_H
2#define RVL_SDK_OS_RESET_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef BOOL (*OSShutdownFunction)(BOOL final, u32 event);
9
10typedef enum {
11 OS_SD_EVENT_FATAL,
12 OS_SD_EVENT_1,
13 OS_SD_EVENT_SHUTDOWN,
14 OS_SD_EVENT_3,
15 OS_SD_EVENT_RESTART,
16 OS_SD_EVENT_RETURN_TO_MENU,
17 OS_SD_EVENT_LAUNCH_APP,
18} OSShutdownEvent;
19
20typedef struct OSShutdownFunctionInfo {
21 OSShutdownFunction func; // at 0x0
22 u32 prio; // at 0x4
23 struct OSShutdownFunctionInfo* next; // at 0x8
24 struct OSShutdownFunctionInfo* prev; // at 0xC
26
28 OSShutdownFunctionInfo* head; // at 0x0
29 OSShutdownFunctionInfo* tail; // at 0x4
31
32void OSRegisterShutdownFunction(OSShutdownFunctionInfo* info);
33BOOL __OSCallShutdownFunctions(u32 pass, u32 event);
34void __OSShutdownDevices(u32 event);
35void __OSGetDiscState(u8* out);
36void OSShutdownSystem(void);
37void OSReturnToMenu(void);
38u32 OSGetResetCode(void);
39void OSResetSystem(u32 arg0, u32 arg1, u32 arg2);
40
41#ifdef __cplusplus
42}
43#endif
44#endif