Skip to content

Commit a2de87d

Browse files
committed
load ata bdm before bdm?
1 parent e4d85a9 commit a2de87d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ ifeq ($(HDD),BDM)
5151
$(error BDM ATAD Requested on build without BDM)
5252
endif
5353
HAS_BDMATAD = -BDMHDD
54+
EE_CFLAGS += -DATA_BDM
5455
endif
5556
ifeq ($(SMB),1)
5657
EE_OBJS += smbman.o

src/main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,14 @@ static void loadUsbModules(void)
14221422
delay(3);
14231423
have_usb_mass = 1;
14241424
} else if (have_usbd && !have_usb_mass) {
1425+
#ifdef ATA_BDM
1426+
load_ps2dev9();
1427+
if (!have_ps2atad) {
1428+
ID = SifExecModuleBuffer(ps2atad_irx, size_ps2atad_irx, 0, NULL, &ret);
1429+
DPRINTF(" [ATAD]: ID=%d, ret=%d\n", ID, ret);
1430+
have_ps2atad = 1;
1431+
}
1432+
#endif
14251433
ID = SifExecModuleBuffer(bdm_irx, size_bdm_irx, 0, NULL, &ret);
14261434
DPRINTF(" [BDM] ID=%d, ret=%d\n", ID, ret);
14271435
ID = SifExecModuleBuffer(bdmfs_fatfs_irx, size_bdmfs_fatfs_irx, 0, NULL, &ret);

0 commit comments

Comments
 (0)