
#include <nitro/ctrdg.h>
BOOL CTRDG_IsOptionCartridgePulledOut( void );
None.
Returns TRUE if removal of option Game Pak was detected; otherwise, returns FALSE. Always returns TRUE after detecting removal of option Game Pak one time.
Detects removal of option Game Pak.
Note that you cannot detect removal with (CTRDG_IsOptionCartridge() && CTRDG_IsPulledOut()).
This function can be called when the cartridge bus is locked with the OS_LockCartridge function. However, while the bus is locked, the ARM7 does not detect removal automatically, so call the CTRDG_IsExisting function at regular intervals, such as each game frame, during which the player cannot perform a re-insert operation. (This function internally calls the CTRDG_IsExisting function.)
CTRDG_Init, CTRDG_IsAgbCartridgePulledOut, CTRDG_IsOptionCartridge, CTRDG_IsPulledOut, CTRDG_IsExisting
2005/04/12 Added description of cartridge bus lock.
2004/10/04 Initial version.
CONFIDENTIAL