mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-29 04:31:49 +01:00
[Gamecube] fixed access to ROM files on SDCARD
This commit is contained in:
parent
0a83f8ccdd
commit
e2366f81a9
@ -130,9 +130,11 @@ void config_default(void)
|
|||||||
config.sfx_volume = 100.0;
|
config.sfx_volume = 100.0;
|
||||||
|
|
||||||
/* default ROM directories */
|
/* default ROM directories */
|
||||||
sprintf (config.sddir, "sd:%s/roms/", DEFAULT_PATH);
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
|
sprintf (config.sddir, "sd:%s/roms/", DEFAULT_PATH);
|
||||||
sprintf (config.usbdir, "usb:%s/roms/", DEFAULT_PATH);
|
sprintf (config.usbdir, "usb:%s/roms/", DEFAULT_PATH);
|
||||||
|
#else
|
||||||
|
sprintf (config.sddir, "/%s/roms/", DEFAULT_PATH);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* restore from config file */
|
/* restore from config file */
|
||||||
|
@ -262,9 +262,12 @@ int FAT_Open(int type)
|
|||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
else if (type == TYPE_USB)
|
else if (type == TYPE_USB)
|
||||||
sprintf (fatdir, "usb:/");
|
sprintf (fatdir, "usb:/");
|
||||||
#endif
|
|
||||||
else
|
else
|
||||||
sprintf (fatdir, "sd:/");
|
sprintf (fatdir, "sd:/");
|
||||||
|
#else
|
||||||
|
else
|
||||||
|
sprintf (fatdir, "/");
|
||||||
|
#endif
|
||||||
|
|
||||||
/* parse current directory */
|
/* parse current directory */
|
||||||
max = FAT_ParseDirectory ();
|
max = FAT_ParseDirectory ();
|
||||||
|
Loading…
Reference in New Issue
Block a user