OS codes

From Bennu Wiki
Jump to: navigation, search


Definition

OS codes are codes used for the global variable os_id, to specify the current platform BGDI is running on.

OS codes 1000 and above are used for unofficial ports and may not be available in the official Bennu version.

List

Constant - Value - Description
OS_WIN32 - 0 - Microsoft Windows
OS_LINUX - 1 - Linux
OS_BEOS - 2 - Be Operating System
OS_MACOS - 3 - Mac Operating System
OS_GP32 - 4 - GP32 handheld console
OS_DC - 5 - Sega Dreamcast
OS_BSD - 6 - Berkeley Software Distribution
OS_GP2X - 7 - GP2X handheld console
OS_GP2X_WIZ - 8 - GP2X WIZ handheld console
OS_CAANOO - 9 - GP2X Caanoo handheld console
OS_DINGUX_A320 - 10 - Dingoo A320 handheld console
OS_WII - 1000 - Nintendo Wii console (through Wii homebrew)
OS_PSP - 1001 - PlayStation Portable
OS_IOS - 1002 - iOS
OS_ANDROID - 1003 - Android (under development)


Internal
Globals ArgcArgvOsid
Constants FALSEMAXBYTEMAXCHARMAXDWORDMAXINTMAXSBYTEMAXSHORTMAXWORDMINBYTEMINCHARMINDWORDMININTMINSBYTEMINSHORTMINWORDNULLOSBEOSOSBSDOSDCOSGP2XOSGP32OSLINUXOSMACOSOSWIIOSWIN32STATUSDEADSTATUSFROZENSTATUSKILLEDSTATUSRUNNINGSTATUSSLEEPINGSTATUSWAITINGTRUE
Locals BigbroFatherIdPriorityReservedSmallbroSon