Skip to content

Commit b291b3e

Browse files
committed
Fixed SD2SP2 / SD gecko issues
1 parent 615a358 commit b291b3e

File tree

6 files changed

+25
-17
lines changed

6 files changed

+25
-17
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Wii homebrew is WiiBrew (www.wiibrew.org).
3939

4040
## UPDATE HISTORY
4141

42+
[4.5.1 - February 6, 2021]
43+
44+
* Fixed SD2SP2 / SD gecko issues (again)
45+
4246
[4.5.0 - January 31, 2021]
4347

4448
* Fixed SD2SP2 issues

hbc/meta.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<app version="1">
33
<name>Snes9x GX</name>
44
<coder>Tantric, Zopenko, Askot</coder>
5-
<version>4.5.0</version>
6-
<release_date>20210131</release_date>
5+
<version>4.5.1</version>
6+
<release_date>20210206</release_date>
77
<short_description>Super Nintendo Emulator</short_description>
88
<long_description>A port of Snes9x to the Wii.</long_description>
99
<ahb_access />

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;
7371
else if(ChangeInterface(DEVICE_SD_SLOTA, SILENT))
7472
device = DEVICE_SD_SLOTA;
7573
else if(ChangeInterface(DEVICE_SD_SLOTB, SILENT))
7674
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;
106104
else if(ChangeInterface(DEVICE_SD_SLOTA, SILENT))
107105
device = DEVICE_SD_SLOTA;
108106
else if(ChangeInterface(DEVICE_SD_SLOTB, SILENT))
109107
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: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,6 @@ void MountAllFAT()
294294
#ifdef HW_RVL
295295
MountFAT(DEVICE_SD, SILENT);
296296
MountFAT(DEVICE_USB, SILENT);
297-
#else
298-
MountFAT(DEVICE_SD_PORT2, SILENT);
299-
MountFAT(DEVICE_SD_SLOTA, SILENT);
300-
MountFAT(DEVICE_SD_SLOTB, SILENT);
301297
#endif
302298
}
303299

source/preferences.cpp

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,12 +662,6 @@ bool LoadPrefs()
662662
sprintf(filepath[2], "usb:/apps/%s", APPFOLDER);
663663
sprintf(filepath[3], "sd:/%s", APPFOLDER);
664664
sprintf(filepath[4], "usb:/%s", APPFOLDER);
665-
#else
666-
numDevices = 3;
667-
sprintf(filepath[0], "port2:/%s", APPFOLDER);
668-
sprintf(filepath[1], "carda:/%s", APPFOLDER);
669-
sprintf(filepath[2], "cardb:/%s", APPFOLDER);
670-
#endif
671665

672666
for(int i=0; i<numDevices; i++)
673667
{
@@ -676,6 +670,20 @@ bool LoadPrefs()
676670
if(prefFound)
677671
break;
678672
}
673+
#else
674+
if(ChangeInterface(DEVICE_SD_SLOTA, SILENT)) {
675+
sprintf(filepath[0], "carda:/%s", APPFOLDER);
676+
prefFound = LoadPrefsFromMethod(filepath[0]);
677+
}
678+
else if(ChangeInterface(DEVICE_SD_SLOTB, SILENT)) {
679+
sprintf(filepath[0], "cardb:/%s", APPFOLDER);
680+
prefFound = LoadPrefsFromMethod(filepath[0]);
681+
}
682+
else if(ChangeInterface(DEVICE_SD_PORT2, SILENT)) {
683+
sprintf(filepath[0], "port2:/%s", APPFOLDER);
684+
prefFound = LoadPrefsFromMethod(filepath[0]);
685+
}
686+
#endif
679687

680688
prefLoaded = true; // attempted to load preferences
681689

source/snes9xgx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "filelist.h"
2121

2222
#define APPNAME "Snes9x GX"
23-
#define APPVERSION "4.5.0"
23+
#define APPVERSION "4.5.1"
2424
#define APPFOLDER "snes9xgx"
2525
#define PREF_FILE_NAME "settings.xml"
2626

0 commit comments

Comments
 (0)