# CTRDG_IsAgbCartridgePulledOut

## Syntax

      #include <nitro/ctrdg.h>

      BOOL CTRDG_IsAgbCartridgePulledOut( void );

## Arguments

None.

## Return Values

Returns `TRUE` when removal of AGB Game Pak was detected. Otherwise, returns `FALSE`. Always returns `TRUE` after detecting removal of AGB Game Pak at least once.

## Description

Detects removal of AGB Game Pak.

Note that you cannot detect removal with `(CTRDG_IsAgbCartridge() && 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.)

## See Also

`CTRDG_Init`, `CTRDG_IsOptionCartridgePulledOut`, `CTRDG_IsAgbCartridge`, `CTRDG_IsPulledOut`, `CTRDG_IsExisting`

## Revision History

2005/04/12 Added description of cartridge bus lock.
2004/10/04 Initial version.

CONFIDENTIAL