CTRDG_Init

C Specification

#include <nitro/ctrdg.h>
void CTRDG_Init( void );
  

Arguments

None.

Return Values

None.

Description

This function initializes the Game Pak library. You can call this function once before calling the Game Pak function. However, when you call the OS_Init function, the CTRDG_Init function is called from inside the OS_Init function. Therefore, it is not necessary to call this function with the application.

Note

The library initially determines the presence of a Game Pak and obtains associated information during this initialization. These values are used later by CTRDG_GetAgbMakerCode and CTRDG_GetAgbGameCode for internal validation. When using the Game Pak, before calling this function, be sure to put the Game Pak into a "valid state".
A "valid state" means that the Game Pak power is set to ON on the IS-NITRO-DEBUGGER or other development tools.

See Also

CTRDG_SetPulledOutCallback, CTRDG_TerminateForPulledOut

Revision History

04/12/2005 Revised description of relationship between CTRDG_GetAgbMakerCode and CTRDG_GetAgbGameCode functions and the initially obtained information.
03/03/2005 Added explanation that the presence of a Game Pak is determined only at initialization.
09/15/2004 Initial version