Skip to content

Commit

Permalink
IGR: Allow booting exit elf from usb
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Jan 28, 2021
1 parent c71e916 commit 9ecb716
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ee_core/src/padhook.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ static void t_loadElf(void)
LoadModule("rom0:SIO2MAN", 0, NULL);
LoadModule("rom0:MCMAN", 0, NULL);

if (ExitPath[1] == 'a') { // ie mass:
ret = LoadModule("mc0:SYS-CONF/USBD.IRX", 0, NULL);
if (ret >= 0)
LoadModule("mc0:SYS-CONF/USBHDFSD.IRX", 0, NULL);
else {
LoadModule("mc1:SYS-CONF/USBD.IRX", 0, NULL);
LoadModule("mc1:SYS-CONF/USBHDFSD.IRX", 0, NULL);
}
delay(5); // Wait for device to be detected.
}

// Load exit ELF
argv[0] = ExitPath;
argv[1] = NULL;
Expand Down

0 comments on commit 9ecb716

Please sign in to comment.