Function


nuContGBPakReadID

Syntax:
s32 nuContGBPakReadID(NUContPakFile* handle, OSGbpakId* id,
u8* status)
Arguments:
handle	GB Pak control structure (shared with Controller Pak structure)
id	Pointer to stored registration area data in Game Boy Game Pak ROM 
status	The detected status
Return Value:
Error
Explanation:

Checks the registration area in the Game Boy Game Pak ROM

Reads the registration area in the Game Boy Game Pak ROM and then checks the data. Internally calls the osGbpakGetStatus function and the osGbpakPower function, puts the obtained status information in "status," and turns power ON. The return value is the value returned by the osGbpakReadId function.

Errors:

PFS_ERR_NOPACK Nothing is inserted in the specified Controller.
PFS_ERR_DEVICE Some device other than a GB Pak is inserted in the Controller.
PFS_ERR_CONTRFAIL Data transfer with Controller has failed. Either the Controller is not connected properly, or there may be some problem with the GB Pak or the Controller connector.
PFS_ERR_NO_GBCART Game Boy Game Pak is not inserted in the GB Pak.
PFS_ERR_NEW_GBCART Game Boy Game Pak has been removed and reinserted.