al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
osGbpakGetStatusSyntax#include <ultra64.h>
Explanation
OSPfs structure pfs must be initialized first with osGbpakInit(3P) function. The detected result is returned to "status." Determines the status according to whether the following bits are set.
OS_GBPAK_GBCART_ON
This bit indicates that removal of a Game Boy game pak has been detected. It is returned once the Game Boy game pak has been removed. When there is a Game Boy game pak in the N64 Game Boy Pak and the osGbpakGetStatus() or osGbpakReadId(3P) function is called, this bit becomes 0.
OS_GBPAK_POWER
Note that this only checks for power on the software side, and does not confirm that the hardware has a stable power supply. The status of the latter cannot be checked on the software side. For details, please refer to osGbpakPower(3P).
OS_GBPAK_RSTB_DETECTION
Retrun value is an error code. If the function terminates normally, a value of 0 is returned. If an error occurs, one of the following error codes is returned:
PFS_ERR_NOPACK
PFS_ERR_DEVICE
PFS_ERR_CONTRFAIL
PFS_ERR_NO_GBCART
PFS_ERR_NEW_GBCART
If you remove and reinsert a Game Boy game pak and then reset N64, the flag for insertion and removal of the Game Boy game pak will remain up. Therefore you need to be careful, because a PFS_ERR_NEW_GBCART error will be returned if osGbpakInit() and then osGbpakGetStatus() are executed after resetting N64. If osGbpakReadId(3P) is called instead of osGbpakGetStatus(), the PFS_ERR_NEW_GBCART error will not be issued. Thus, osGbpakReadId(3P) should be used to check the status of the 64GB Pak after initialization.
See Also
Revision History
|