fname | File name |
gf_dirrec | Directory record handle where the file name will be searched for |
NULL | Failed to open | |
Any other value | File handle |
If gf_dirrec is specified as NULL, file will be searched for in the current directory.
/* 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);