Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSReset.h
Go to the documentation of this file.
1#ifndef _REVOLUTION_OSRESET_H_
2#define _REVOLUTION_OSRESET_H_
3
4#include <revolution/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define OS_RESET_RESTART 0
11#define OS_RESET_HOTRESET 1
12#define OS_RESET_SHUTDOWN 2
13
19
21
28
31void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu);
33u32 OSSetBootDol(u32 dolOffset);
34void OSReturnToMenu(void);
35
36#define OSIsRestart() \
37 ((OSGetResetCode() & 0x80000000) ? TRUE : FALSE)
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif
int BOOL
Definition types.h:33
unsigned long u32
Definition types.h:12
BOOL(* OSShutdownFunction)(BOOL, u32)
Definition OSReset.h:20
void OSRegisterShutdownFunction(OSShutdownFunctionInfo *info)
Definition OSReset.c:75
struct OSShutdownFunctionQueue OSShutdownFunctionQueue
void OSUnregisterShutdownFunction(OSShutdownFunctionInfo *info)
Definition OSReset.c:81
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu)
Definition OSReset.c:193
u32 OSSetBootDol(u32 dolOffset)
Definition OSReset.c:242
void OSReturnToMenu(void)
Definition OSReset.c:295
u32 OSGetResetCode()
Definition OSReset.c:232
Definition OSReset.h:22
u32 priority
Definition OSReset.h:24
OSShutdownFunctionInfo * prev
Definition OSReset.h:26
OSShutdownFunction func
Definition OSReset.h:23
OSShutdownFunctionInfo * next
Definition OSReset.h:25
Definition OSReset.h:15
OSShutdownFunctionInfo * tail
Definition OSReset.h:17
OSShutdownFunctionInfo * head
Definition OSReset.h:16