#include <nitro/ctrdg.h>
void CTRDG_Init( void );
None.
None.
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.
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.
When this function is called, a thread for executing an asynchronous AGB backup access function is created. Therefore, you must call OS_InitThread before calling this function.
CTRDG_SetPulledOutCallback, CTRDG_TerminateForPulledOut
04/05/2006 Added a comment that the OS_InitThread function must now be called before this function.
04/12/2005 Revised description of the relationship between CTRDG_GetAgbMakerCode and CTRDG_GetAgbGameCode functions and the initially obtained information.
03/03/2005 Added a comment that the presence of Game Pak is checked only at initialization.
09/15/2004 Initial version.
CONFIDENTIAL