Japanese
PROGRAMMER'S GUIDEFile system library
BackForward
file system library

8.Function specification-6


8.6 Others


 one
View
table
 Title

function specification

 Function

Moving the CD pickup

 Function name

GFS_CdMovePickup

 No

6.1

Format
Sint32 GFS_CdMovePickup(GfsHn gfs)
input
gfs: file handle
output
none
function value
Error code.
function
Move the CD pickup to the access pointer position.
Used to reduce pickup seek time when reading from a CD using the GFS_Fread function, GFS_NwFread function, or GFS_NwCdRead function.

 one
View
table
 Title

function specification

 Function

error handling

Function settings
 Function name

GFS_SetErrFunc

No

6.2

Format
void GFS_SetErrFunc(void (*func)(GfsErrFunc func), void *obj)
input
 func
 :Function called when an error occurs
 obj
 :The first argument of the func function
output
none
function value
none
function
Register a function to be called when an error occurs.
If func is set to NULL, the error handling function will be unregistered.

 one
View
table
 Title

function specification

 Function

Get error status

 Function name

GFS_GetErrStat

 No

6.3

Format
void GFS_GetErrStat(GfsErrStat *stat)
input
none
output
stat: error status
function value
none
function
Gets the error status of the last executed library function.

 one
View
table
 Title

function specification

 Function

Track number conversion

 Function name

GFS_ConvTno

 No

6.4

Format
Sint32 GFS_ConvTno(Sint32 logtno)
input
logtno: Logical track number (track number handled by game disc)
output
none
function value
Physical track number (track number on DDS disk)
function
Converts logical track numbers to physical track numbers. If DDS (Direct Dispatch System) is not running, the logical track number = physical track number.

BackForward
PROGRAMMER'S GUIDEFile system library
Copyright SEGA ENTERPRISES, LTD., 1997