OSGetConsoleType

Syntax

#include <cafe/os/OSPlatform.h>

#define OS_CONSOLE_MASK                 0xf0000000
#define OS_CONSOLE_RETAIL               0x00000000
#define OS_CONSOLE_DEVELOPMENT          0x10000000

#define OS_CONSOLE_CAT_1_0              0x13000048
#define OS_CONSOLE_CAFE_1_0             0x03000050

u32 OSGetConsoleType(void);

Parameters

None.

Return Values

Returns one of the OS_CONSOLE_* values. The table below provides a summary of the console types currently available.

Macros Value Description
OS_CONSOLE_CAT_1_0 0x13000048 CAT-DEV
OS_CONSOLE_CAFE_1_0 0x03000050 CAFE or CAT-R

Description

Checks the console type. The uppermost four bits of the return value are used to distinguish production version systems from development systems. The upper four bits are 0x0 in the commercial product system and 0x1 in the development system. Note that the API returns 0x0(production version systems) on CAT-R. The other 28-bits show the minor revision number of the console.

Do Not Call From

None.

See Also

OSInit

Revision History

2013-05-08 Automated cleanup pass.
2012-03-02 Add new return value.
2010-08-30 Initial version.


CONFIDENTIAL