mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-04 01:45:08 +01:00
enable fat readahead cache, fixed FAT filenames & history
This commit is contained in:
parent
8ea80d38a5
commit
822de1bd3f
@ -1,7 +1,7 @@
|
||||
Genesis Plus for Gamecube
|
||||
------------------------------
|
||||
|
||||
08/12/2008:
|
||||
11/12/2008:
|
||||
-----------
|
||||
[Genesis]
|
||||
- YM2612 bugfixes (MAME core):
|
||||
|
@ -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;
|
||||
|
||||
|
@ -230,7 +230,6 @@ int FAT_Open(int type)
|
||||
|
||||
/* reset flags */
|
||||
useFAT = 1;
|
||||
useHistory = 0;
|
||||
|
||||
/* FAT header */
|
||||
#ifdef HW_RVL
|
||||
@ -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);
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user