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 OSShutdownSystem();
32void OSRestart(u32 resetCode);
33void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu);
35u32 OSSetBootDol(u32 dolOffset);
36void OSReturnToMenu(void);
37
38#define OSIsRestart() \
39 ((OSGetResetCode() & 0x80000000) ? TRUE : FALSE)
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu)
Definition OSReset.c:193
u32 OSGetResetCode()
Definition OSReset.c:232
int BOOL
Definition types.h:33
unsigned long u32
Definition types.h:12
BOOL(* OSShutdownFunction)(BOOL, u32)
Definition OSReset.h:20
void OSShutdownSystem()
Definition OSReset.c:178
void OSRegisterShutdownFunction(OSShutdownFunctionInfo *info)
Definition OSReset.c:75
struct OSShutdownFunctionQueue OSShutdownFunctionQueue
void OSUnregisterShutdownFunction(OSShutdownFunctionInfo *info)
Definition OSReset.c:81
u32 OSSetBootDol(u32 dolOffset)
Definition OSReset.c:242
void OSRestart(u32 resetCode)
Definition OSReset.c:220
void OSReturnToMenu(void)
Definition OSReset.c:295
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