Shinobi Library - File System Function

gdFsOpen

Opens a file

FORMAT

GDFS gdFsOpen( *fname, gf_dirrec )
const char *fname
GDFS_DIRREC gf_dirrec

PARAMETER

 fname  File name 
 gf_dirrec  Directory record handle where the file name will be searched for 

RETURN

 NULL  Failed to open 
 Any other value  File handle 

DESCRIPTION

Opens a file.

If gf_dirrec is specified as NULL, file will be searched for in the current directory.


EXAMPLE

/* Sample 1 */
GDFS gf;
gf = gdFsOpen("A.BIN", NULL);
/* Sample 2 */
GDFS gf;
Uint32 dirbuf[gdFsGetDirSize(64)];
GDFS_DIRREC g_dir;
g_dir = gdFsCreateDirhn(dirbuf, 64);
gdFsLoadDir("MOVIE", g_dir);
gf = gdFsOpen("SMP.MOV", g_dir);

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