Other function - BootROM service function

syBtGetCurrentSystemID

Gets the system ID information on the disc

FORMAT

Sint32 syBtGetCurrentSystemID( *pData )
SYS_BT_SYSTEMID *pData

PARAMETER

 *pData  Address of the structure where the system ID information is stored 

RETURN

The error code

DESCRIPTION

Gets the system ID information on the disc which is being recognized currently. Confirm SYS_BT_SYSTEMID structure entity in the application for the argument *pData, and transfer the pointer.

EXAMPLE

SYS_BT_SYSTEMID     systemidBoot ;
SYS_BT_SYSTEMID     systemidCurrent ;

int                 nRet1,nRet2;
int                 y ;
nRet1 = syBtGetBootSystemID( &systemidBoot ) ;
nRet2 = syBtGetCurrentSystemID( &systemidCurrent ) ;
y = 2 ;
njPrintC( NJM_LOCATION( 4,y++),"BOOT DISC INFO" ) ;
njPrintC( NJM_LOCATION( 4,y), "SYSTEM ID ADDRESS") ;
njPrintH( NJM_LOCATION(25,y++),(Uint32)pAddr1,8) ;
y++ ;
njPrintC( NJM_LOCATION( 4,y),"ID GET RETURN CODE") ;
njPrintH( NJM_LOCATION(25,y++),(Uint32)nRet1, 8) ;
njPrintC( NJM_LOCATION( 4,y),"NO." ) ;
njPrintD( NJM_LOCATION(10,y++), systemidBoot.nNo ,8 ) ;
njPrintC( NJM_LOCATION( 4,y),"All." ) ;
njPrintD( NJM_LOCATION(10,y++), systemidBoot.nAll,8 ) ;
njPrintC( NJM_LOCATION( 4,y),"PID." ) ;
njPrintC( NJM_LOCATION(10,y++), systemidBoot.szProduct ) ;
y = 10 ;
njPrintC( NJM_LOCATION( 4,y++),"NEW DISC INFO" ) ;
njPrintC( NJM_LOCATION( 4,y),"SYSTEM ID ADDRESS") ;
njPrintH( NJM_LOCATION(25,y++),(Uint32)pAddr2,8) ;
y++ ;
njPrintC( NJM_LOCATION( 4,y),"ID GET RETURN CODE") ;
njPrintH( NJM_LOCATION(25,y++),(Uint32)nRet2, 8) ;
njPrintC( NJM_LOCATION( 4,y),"NO." ) ;
njPrintD( NJM_LOCATION(10,y++), systemidCurrent.nNo ,8 ) ;
njPrintC( NJM_LOCATION( 4,y),"All." ) ;
njPrintD( NJM_LOCATION(10,y++), systemidCurrent.nAll,8 ) ;
njPrintC( NJM_LOCATION( 4,y),"PID." ) ;
njPrintC( NJM_LOCATION(10,y++), systemidCurrent.szProduct ) ;

NOTE

This function performs only when it is dicided as the Dreamcast disk by the disk check function, syBtCheckDisc(), and the disk door doesn't open. If you convert the disc and occur the failure of disc check recognition, we cannot guarantee this activities.

REFERENCE

syBtCheckDisc()

syBtGetCurrentSystemID
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999