diff --git a/history.txt b/history.txt index e69c1ef..0b62887 100644 --- a/history.txt +++ b/history.txt @@ -1,7 +1,7 @@ Genesis Plus for Gamecube ------------------------------ -08/12/2008: +11/12/2008: ----------- [Genesis] - YM2612 bugfixes (MAME core): diff --git a/source/ngc/config.c b/source/ngc/config.c index 86f0f74..afea63e 100644 --- a/source/ngc/config.c +++ b/source/ngc/config.c @@ -38,7 +38,7 @@ void config_load() char pathname[MAXPATHLEN]; /* open configuration file */ - sprintf (pathname, "%s/genplus.ini", DEFAULT_PATH); + sprintf (pathname, "%s/config.ini", DEFAULT_PATH); FILE *fp = fopen(pathname, "rb"); if (fp == NULL) return; diff --git a/source/ngc/fileio_fat.c b/source/ngc/fileio_fat.c index 57f24d8..56287d4 100644 --- a/source/ngc/fileio_fat.c +++ b/source/ngc/fileio_fat.c @@ -230,8 +230,7 @@ int FAT_Open(int type) /* reset flags */ useFAT = 1; - useHistory = 0; - + /* FAT header */ #ifdef HW_RVL if (type == TYPE_SD) sprintf (root, "sd:"); @@ -248,6 +247,7 @@ int FAT_Open(int type) /* update filelist */ if (haveFATdir == 0) { + useHistory = 0; if (type == TYPE_RECENT) { /* fetch history list */ @@ -275,7 +275,7 @@ int FAT_Open(int type) else { /* reset root directory */ - sprintf (fatdir, "%s%s/roms", root, DEFAULT_PATH); + sprintf (fatdir, "%s%s/roms/", root, DEFAULT_PATH); /* if directory doesn't exist, use root as default */ DIR_ITER *dir = diropen(fatdir); diff --git a/source/ngc/ngc.c b/source/ngc/ngc.c index 044a448..570e96c 100644 --- a/source/ngc/ngc.c +++ b/source/ngc/ngc.c @@ -153,6 +153,13 @@ int main (int argc, char *argv[]) if (fatInitDefault() == true) { fat_enabled = 1; +#ifdef HW_RVL + fatEnableReadAhead ("sd", 6, 64); + fatEnableReadAhead ("usb", 6, 64); +#else + fatEnableReadAhead ("carda", 6, 64); + fatEnableReadAhead ("cardb", 6, 64); +#endif } /* Default Config */