Skip to content

Commit

Permalink
- Adjust for libogc2 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Mar 29, 2024
1 parent 5e3c515 commit 2f58c5f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions cube/swiss/source/bba.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ bool bba_exists(u32 location)
if ((location & LOC_SERIAL_PORT_1) && EXI_GetID(EXI_CHANNEL_0, EXI_DEVICE_2, &id)) {
switch (id) {
case EXI_MX98730EC_ID:
case EXI_ENC28J60_ID:
return true;
}
}
Expand Down
6 changes: 4 additions & 2 deletions cube/swiss/source/devices/fsp/deviceHandler-FSP.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,12 @@ bool deviceHandler_FSP_test() {
__device_fsp.deviceTexture = (textureImage){TEX_ETH2GC, 64, 80, 64, 80};
__device_fsp.features = FEAT_READ|FEAT_WRITE|FEAT_THREAD_SAFE;
__device_fsp.emulable = EMU_NONE;
if(ifname[1] == '0')
if(ifname[1] == 'A')
__device_fsp.location = LOC_MEMCARD_SLOT_A;
else if(ifname[1] == '1')
else if(ifname[1] == 'B')
__device_fsp.location = LOC_MEMCARD_SLOT_B;
else if(ifname[1] == '1')
__device_fsp.location = LOC_SERIAL_PORT_1;
else if(ifname[1] == '2')
__device_fsp.location = LOC_SERIAL_PORT_2;
}
Expand Down
6 changes: 4 additions & 2 deletions cube/swiss/source/devices/ftp/deviceHandler-FTP.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,12 @@ bool deviceHandler_FTP_test() {
if(ifname[0] == 'E') {
__device_ftp.hwName = "ENC28J60";
__device_ftp.deviceTexture = (textureImage){TEX_ETH2GC, 64, 80, 64, 80};
if(ifname[1] == '0')
if(ifname[1] == 'A')
__device_ftp.location = LOC_MEMCARD_SLOT_A;
else if(ifname[1] == '1')
else if(ifname[1] == 'B')
__device_ftp.location = LOC_MEMCARD_SLOT_B;
else if(ifname[1] == '1')
__device_ftp.location = LOC_SERIAL_PORT_1;
else if(ifname[1] == '2')
__device_ftp.location = LOC_SERIAL_PORT_2;
}
Expand Down
6 changes: 4 additions & 2 deletions cube/swiss/source/devices/smb/deviceHandler-SMB.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,12 @@ bool deviceHandler_SMB_test() {
if(ifname[0] == 'E') {
__device_smb.hwName = "ENC28J60";
__device_smb.deviceTexture = (textureImage){TEX_ETH2GC, 64, 80, 64, 80};
if(ifname[1] == '0')
if(ifname[1] == 'A')
__device_smb.location = LOC_MEMCARD_SLOT_A;
else if(ifname[1] == '1')
else if(ifname[1] == 'B')
__device_smb.location = LOC_MEMCARD_SLOT_B;
else if(ifname[1] == '1')
__device_smb.location = LOC_SERIAL_PORT_1;
else if(ifname[1] == '2')
__device_smb.location = LOC_SERIAL_PORT_2;
}
Expand Down

0 comments on commit 2f58c5f

Please sign in to comment.