enable readahead, file checks

This commit is contained in:
dborth 2008-10-05 22:46:15 +00:00
parent 20a3749909
commit 42ac1b1888
3 changed files with 7 additions and 1 deletions

View File

@ -72,7 +72,7 @@ int main(int argc, char *argv[])
}
InitialiseSound();
fatInitDefault();
fatInit (8, false);
#ifndef HW_RVL
DVD_Init();
#endif

View File

@ -59,6 +59,7 @@ bool ChangeFATInterface(int method, bool silent)
{
devFound = true;
fatSetDefaultInterface(PI_INTERNAL_SD);
fatEnableReadAhead (PI_INTERNAL_SD, 6, 64);
}
#endif
@ -85,6 +86,7 @@ bool ChangeFATInterface(int method, bool silent)
{
devFound = true;
fatSetDefaultInterface(PI_USBSTORAGE);
fatEnableReadAhead (PI_USBSTORAGE, 6, 64);
}
else
{

View File

@ -353,6 +353,10 @@ int FileSelector (int method)
}
else // this is a file
{
// check that this is a valid ROM
if(!IsValidROM(method))
return 0;
// store the filename (w/o ext) - used for state saving
StripExt(romFilename, filelist[selection].filename);