Skip to content

Commit 615a358

Browse files
committed
reverse mounting order, fix bug storing save/load method
1 parent bf65ffe commit 615a358

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

source/filebrowser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ int autoLoadMethod()
6868
device = DEVICE_SD;
6969
else if(ChangeInterface(DEVICE_USB, SILENT))
7070
device = DEVICE_USB;
71+
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
72+
device = DEVICE_SD_PORT2;
7173
else if(ChangeInterface(DEVICE_SD_SLOTA, SILENT))
7274
device = DEVICE_SD_SLOTA;
7375
else if(ChangeInterface(DEVICE_SD_SLOTB, SILENT))
7476
device = DEVICE_SD_SLOTB;
75-
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
76-
device = DEVICE_SD_PORT2;
7777
else if(ChangeInterface(DEVICE_DVD, SILENT))
7878
device = DEVICE_DVD;
7979
else if(ChangeInterface(DEVICE_SMB, SILENT))
@@ -101,12 +101,12 @@ int autoSaveMethod(bool silent)
101101
device = DEVICE_SD;
102102
else if(ChangeInterface(DEVICE_USB, SILENT))
103103
device = DEVICE_USB;
104+
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
105+
device = DEVICE_SD_PORT2;
104106
else if(ChangeInterface(DEVICE_SD_SLOTA, SILENT))
105107
device = DEVICE_SD_SLOTA;
106108
else if(ChangeInterface(DEVICE_SD_SLOTB, SILENT))
107109
device = DEVICE_SD_SLOTB;
108-
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT))
109-
device = DEVICE_SD_PORT2;
110110
else if(ChangeInterface(DEVICE_SMB, SILENT))
111111
device = DEVICE_SMB;
112112
else if(!silent)

source/fileop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ void UnmountAllFAT()
204204
fatUnmount("sd:");
205205
fatUnmount("usb:");
206206
#else
207+
fatUnmount("port2:");
207208
fatUnmount("carda:");
208209
fatUnmount("cardb:");
209-
fatUnmount("port2:");
210210
#endif
211211
}
212212

@@ -295,9 +295,9 @@ void MountAllFAT()
295295
MountFAT(DEVICE_SD, SILENT);
296296
MountFAT(DEVICE_USB, SILENT);
297297
#else
298+
MountFAT(DEVICE_SD_PORT2, SILENT);
298299
MountFAT(DEVICE_SD_SLOTA, SILENT);
299300
MountFAT(DEVICE_SD_SLOTB, SILENT);
300-
MountFAT(DEVICE_SD_PORT2, SILENT);
301301
#endif
302302
}
303303

source/preferences.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ decodePrefsData ()
387387
***************************************************************************/
388388
void FixInvalidSettings()
389389
{
390-
if(GCSettings.LoadMethod > 6)
390+
if(GCSettings.LoadMethod > 7)
391391
GCSettings.LoadMethod = DEVICE_AUTO;
392-
if(GCSettings.SaveMethod > 6)
392+
if(GCSettings.SaveMethod > 7)
393393
GCSettings.SaveMethod = DEVICE_AUTO;
394394
if(!(GCSettings.zoomHor > 0.5 && GCSettings.zoomHor < 1.5))
395395
GCSettings.zoomHor = 1.0;
@@ -664,9 +664,9 @@ bool LoadPrefs()
664664
sprintf(filepath[4], "usb:/%s", APPFOLDER);
665665
#else
666666
numDevices = 3;
667-
sprintf(filepath[0], "carda:/%s", APPFOLDER);
668-
sprintf(filepath[1], "cardb:/%s", APPFOLDER);
669-
sprintf(filepath[2], "port2:/%s", APPFOLDER);
667+
sprintf(filepath[0], "port2:/%s", APPFOLDER);
668+
sprintf(filepath[1], "carda:/%s", APPFOLDER);
669+
sprintf(filepath[2], "cardb:/%s", APPFOLDER);
670670
#endif
671671

672672
for(int i=0; i<numDevices; i++)

0 commit comments

Comments
 (0)