OSGetResetCode

Syntax

#include <revolution/os.h>

u32 OSGetResetCode(void);

Arguments

None.

Return Values

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
The OSExecl and OSExecv functions OS_RESETCODE_EXEC(0xC000_0000).

Description

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.

See Also

OSRestart, OSIsRestart, OSExecl/OSExecv

Revision History

2006/08/14 Added text specific to OSRestart.
2006/03/01 Initial version.


CONFIDENTIAL