Skip to content

Commit

Permalink
Some init fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuHAK committed Feb 20, 2025
1 parent 13c2ed4 commit 973130a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ int load_default_module(int id) {

ID = SifExecModuleBuffer(&ps2hdd_irx, size_ps2hdd_irx, sizeof(hddarg), hddarg, &ret);
REPORT("PS2HDD");
// Introduce delay to prevent ps2hdd module from hanging
sleep(1);

HDDSTAT = fileXioDevctl("hdd0:", HDIOC_STATUS, NULL, 0, NULL, 0); /* 0 = HDD connected and formatted, 1 = not formatted, 2 = HDD not usable, 3 = HDD not connected. */
dbgprintf("%s: HDD status is %d\n", __func__, HDDSTAT);
Expand All @@ -316,6 +318,8 @@ int load_default_module(int id) {
ID = SifExecModuleBuffer(&fileXio_irx, size_fileXio_irx, 0, NULL, &ret);
REPORT("FILEXIO");
filexio_started = LOAD_SUCCESS();

fileXioInit();
}
break;
#ifdef ATHENA_CAMERA
Expand Down

0 comments on commit 973130a

Please sign in to comment.