#include <revolution/os.h>
u32 OSGetResetCode (void);
None.
Returns the reset code.
| Type | Reset Code |
| when launched from the system menu | 0 |
the OSRestart function |
OS_RESETCODE_RESTART(0x8000_0000) | the 29 bits of reset code specified by OSRestart |
OSExecl/OSExecv |
OS_RESETCODE_EXEC(0xC000_0000). |
Returns the reset code. The application uses this code to identify whether the system was booted by either the system menu, OSRestart, OSExecl or OSExecv.
OSRestart function the code is a logical sum of OS_RESETCODE_RESTART(0x8000_0000) and the 29 bit value specified by the OSRestart function.OSExecl or OSExecv is OS_RESETCODE_EXEC(0xC000_0000).OSRestart
OSIsRestart
OSExecl/OSExecv
2006/8/14 Added text specific to OSRestart.
03/01/2006 Initial version.
CONFIDENTIAL