[Gamecube] fixed access to ROM files on SDCARD

This commit is contained in:
ekeeke31 2010-05-25 06:42:28 +00:00
parent 0a83f8ccdd
commit e2366f81a9
2 changed files with 7 additions and 2 deletions

View File

@ -130,9 +130,11 @@ void config_default(void)
config.sfx_volume = 100.0;
/* default ROM directories */
sprintf (config.sddir, "sd:%s/roms/", DEFAULT_PATH);
#ifdef HW_RVL
sprintf (config.sddir, "sd:%s/roms/", DEFAULT_PATH);
sprintf (config.usbdir, "usb:%s/roms/", DEFAULT_PATH);
#else
sprintf (config.sddir, "/%s/roms/", DEFAULT_PATH);
#endif
/* restore from config file */

View File

@ -262,9 +262,12 @@ int FAT_Open(int type)
#ifdef HW_RVL
else if (type == TYPE_USB)
sprintf (fatdir, "usb:/");
#endif
else
sprintf (fatdir, "sd:/");
#else
else
sprintf (fatdir, "/");
#endif
/* parse current directory */
max = FAT_ParseDirectory ();