mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +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();
|
||||
fatInitDefault();
|
||||
fatInit (8, false);
|
||||
#ifndef HW_RVL
|
||||
DVD_Init();
|
||||
#endif
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user