#include <nitro/ctrdg.h>
BOOL CTRDG_IsNumberID( u8 numberID );
numberID | The Number ID |
Returns TRUE if the peripheral corresponding to the Number ID exists in the Game Pak.
FALSE if otherwise. The function always returns FALSE when the check is made after the Game Pak has been removed.
Checks whether the peripheral corresponding to the Bit ID actually exists in the Game Pak. A bit ID and a number ID are assigned to every peripheral built into the Game Pak. More than one peripheral can be built into the Game Pak, in which case multiple IDs are also stored. More than one peripheral can be built into the Game Pak, in which case multiple IDs are also stored.
If there is an ID stored in the AGB Game Pak, it is possible to identify the peripheral.
This function is normally used by the peripheral library to implement functions and to check whether peripherals are present. You should have your application call this function via the peripheral library. Calling this function directly is not recommended. This function can be called when the cartridge bus is locked with the OS_LockCartridge
function. However, when the bus is locked, the ARM7 will not perform automatic release detection processing, and thus you should periodically call CTRDG_IsExisting
each game frame or other interval when the player cannot reinsert. (This function internally calls CTRDG_IsExisting
.)
CTRDG_Init
, CTRDG_IsBitID
, CTRDG_IsOptionCartridge
, CTRDG_IsAgbCartridge
, CTRDG_IsExisting
04/12/2005 Added description of cartridge bus lock
10/19/2004 Initial version