##### Shinobi Library - File System Function

# gdFsLoadDir

Loads a directory record

### FORMAT

`

  Sint32 gdFsLoadDir( *dirname, gf_dirrec )
  const char *dirname
  GDFS_DIRREC gf_dirrec

`

### PARAMETER

  `dirname` | Directory name
  `gf_dirrec` | Directory record handle

### RETURN

  GDD_ERR

### DESCRIPTION

  Loads a directory record. If "gf_dirrec" is specified as null, the record handle of the current directory is returned.

### EXAMPLE

      /* Sample 1 */
      /* Load MOVIE directory into g_dir */
      Uint32 dirbuf[gdFsGetDirrecSize(64)];
      GDFS_DIRREC g_dir;
      g_dir = gdFsCreateDirhn(dirbuf, 64);
      gdFsLoadDir("MOVIE", g_dir);
      /* Sample 2 */
      /* Change the current directory to the DATA directory */
      gdFsLoadDir("DATA", NULL);

### NOTE

  No distinction is made between upper- and lower-case characters.

gdFsLoadDir

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999