mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-08 23:01:02 +01:00
reverse mounting order, fix bug storing save/load method
This commit is contained in:
parent
9aaed4f09e
commit
64d4af1b56
@ -63,12 +63,12 @@ int autoLoadMethod()
|
||||
device = DEVICE_SD;
|
||||
else if(ChangeInterface(DEVICE_USB, SILENT))
|
||||
device = DEVICE_USB;
|
||||
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
|
||||
device = DEVICE_SD_PORT2;
|
||||
else if(ChangeInterface(DEVICE_SD_SLOTA, SILENT))
|
||||
device = DEVICE_SD_SLOTA;
|
||||
else if(ChangeInterface(DEVICE_SD_SLOTB, SILENT))
|
||||
device = DEVICE_SD_SLOTB;
|
||||
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
|
||||
device = DEVICE_SD_PORT2;
|
||||
else if(ChangeInterface(DEVICE_DVD, SILENT))
|
||||
device = DEVICE_DVD;
|
||||
else if(ChangeInterface(DEVICE_SMB, SILENT))
|
||||
@ -96,12 +96,12 @@ int autoSaveMethod(bool silent)
|
||||
device = DEVICE_SD;
|
||||
else if(ChangeInterface(DEVICE_USB, SILENT))
|
||||
device = DEVICE_USB;
|
||||
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
|
||||
device = DEVICE_SD_PORT2;
|
||||
else if(ChangeInterface(DEVICE_SD_SLOTA, SILENT))
|
||||
device = DEVICE_SD_SLOTA;
|
||||
else if(ChangeInterface(DEVICE_SD_SLOTB, SILENT))
|
||||
device = DEVICE_SD_SLOTB;
|
||||
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
|
||||
device = DEVICE_SD_PORT2;
|
||||
else if(ChangeInterface(DEVICE_SMB, SILENT))
|
||||
device = DEVICE_SMB;
|
||||
else if(!silent)
|
||||
|
@ -206,9 +206,9 @@ void UnmountAllFAT()
|
||||
fatUnmount("sd:");
|
||||
fatUnmount("usb:");
|
||||
#else
|
||||
fatUnmount("port2:");
|
||||
fatUnmount("carda:");
|
||||
fatUnmount("cardb:");
|
||||
fatUnmount("port2:");
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -299,9 +299,9 @@ void MountAllFAT()
|
||||
MountFAT(DEVICE_SD, SILENT);
|
||||
MountFAT(DEVICE_USB, SILENT);
|
||||
#else
|
||||
MountFAT(DEVICE_SD_PORT2, SILENT);
|
||||
MountFAT(DEVICE_SD_SLOTA, SILENT);
|
||||
MountFAT(DEVICE_SD_SLOTB, SILENT);
|
||||
MountFAT(DEVICE_SD_PORT2, SILENT);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -367,9 +367,9 @@ decodePrefsData ()
|
||||
***************************************************************************/
|
||||
void FixInvalidSettings()
|
||||
{
|
||||
if(GCSettings.LoadMethod > 6)
|
||||
if(GCSettings.LoadMethod > 7)
|
||||
GCSettings.LoadMethod = DEVICE_AUTO;
|
||||
if(GCSettings.SaveMethod > 6)
|
||||
if(GCSettings.SaveMethod > 7)
|
||||
GCSettings.SaveMethod = DEVICE_AUTO;
|
||||
if(!(GCSettings.zoomHor > 0.5 && GCSettings.zoomHor < 1.5))
|
||||
GCSettings.zoomHor = 1.0;
|
||||
@ -591,9 +591,9 @@ bool LoadPrefs()
|
||||
sprintf(filepath[4], "usb:/%s", APPFOLDER);
|
||||
#else
|
||||
numDevices = 3;
|
||||
sprintf(filepath[0], "carda:/%s", APPFOLDER);
|
||||
sprintf(filepath[1], "cardb:/%s", APPFOLDER);
|
||||
sprintf(filepath[2], "port2:/%s", APPFOLDER);
|
||||
sprintf(filepath[0], "port2:/%s", APPFOLDER);
|
||||
sprintf(filepath[1], "carda:/%s", APPFOLDER);
|
||||
sprintf(filepath[2], "cardb:/%s", APPFOLDER);
|
||||
#endif
|
||||
|
||||
for(int i=0; i<numDevices; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user