mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
enable readahead, file checks
This commit is contained in:
parent
20a3749909
commit
42ac1b1888
@ -72,7 +72,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
InitialiseSound();
|
InitialiseSound();
|
||||||
fatInitDefault();
|
fatInit (8, false);
|
||||||
#ifndef HW_RVL
|
#ifndef HW_RVL
|
||||||
DVD_Init();
|
DVD_Init();
|
||||||
#endif
|
#endif
|
||||||
|
@ -59,6 +59,7 @@ bool ChangeFATInterface(int method, bool silent)
|
|||||||
{
|
{
|
||||||
devFound = true;
|
devFound = true;
|
||||||
fatSetDefaultInterface(PI_INTERNAL_SD);
|
fatSetDefaultInterface(PI_INTERNAL_SD);
|
||||||
|
fatEnableReadAhead (PI_INTERNAL_SD, 6, 64);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -85,6 +86,7 @@ bool ChangeFATInterface(int method, bool silent)
|
|||||||
{
|
{
|
||||||
devFound = true;
|
devFound = true;
|
||||||
fatSetDefaultInterface(PI_USBSTORAGE);
|
fatSetDefaultInterface(PI_USBSTORAGE);
|
||||||
|
fatEnableReadAhead (PI_USBSTORAGE, 6, 64);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -353,6 +353,10 @@ int FileSelector (int method)
|
|||||||
}
|
}
|
||||||
else // this is a file
|
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
|
// store the filename (w/o ext) - used for state saving
|
||||||
StripExt(romFilename, filelist[selection].filename);
|
StripExt(romFilename, filelist[selection].filename);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user