1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>CTRDG_IsAgbCartridge</TITLE>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">CTRDG_IsAgbCartridge <IMG src="../image/NTR.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;nitro/ctrdg.h&gt;</CODE></PRE>
16  <PRE><CODE>BOOL CTRDG_IsAgbCartridge( void );
17  </CODE></PRE>
18</DL>
19<H2>Arguments</H2>
20<P>None.</P>
21<H2>Return Values</H2>
22<P>Returns a value of TRUE if there is an AGB Game Pak; otherwise, returns a value of FALSE. Also, always returns <code>FALSE</code> after the Game Pak has been removed once.</P>
23<H2>Description</H2>
24<P>This function returns a BOOLEAN value to indicate if an AGB Game Pak is present.</P>
25<P>However, this function will always return a value of FALSE after detecting the initial removal of a Game Pak. (This behavior is not limited to the AGB Game Pak.) <br> This function can be called when the cartridge bus is locked with the <a href="../os/spinLock/OS_LockCartridge.html"><CODE>OS_LockCartridge</CODE></a> function. However, while the bus is locked, the ARM7 does not detect removal automatically, so call the <A href="CTRDG_IsExisting.html"><CODE>CTRDG_IsExisting</CODE></A> function at regular intervals, such as each game frame, during which the player cannot perform a re-insert operation. (This function internally calls the <A href="CTRDG_IsExisting.html"><CODE>CTRDG_IsExisting</CODE></A> function.)
26</P>
27
28<H2>See Also</H2>
29<P><A href="CTRDG_Init.html"><code>CTRDG_Init</code></A>, <A href="CTRDG_IsExisting.html"><code>CTRDG_IsExisting</code></A>, <A href="CTRDG_IsOptionCartridge.html"><code>CTRDG_IsOptionCartridge</code></A></P>
30<H2>Revision History</H2>
31<P>2005/04/12 Added description of cartridge bus lock.<br /> 2004/09/17 Initial version.                             </P>
32<hr><p>CONFIDENTIAL</p></body>
33</HTML>
34