Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps authored Feb 8, 2024
1 parent 5d6f238 commit 350d5a6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
extern int size_##_n

//IRX for togleable features
#ifdef SUPPORT_SYSTEM_2X6
#include <iopcontrol_special.h>
IMPORT_BIN2C(ioprp_img);
#endif
#ifdef ETH
IMPORT_BIN2C(ps2ip_irx);
IMPORT_BIN2C(ps2smap_irx);
Expand Down Expand Up @@ -2381,10 +2385,12 @@ static void Reset()
{
#ifndef NO_IOP_RESET
SifInitRpc(0);
while (!SifIopReset("", 0)) {
};
while (!SifIopSync()) {
};
#ifdef SUPPORT_SYSTEM_2X6
while (!SifIopRebootBuffer(ioprp_img, size_ioprp_img)) {};
#else
while (!SifIopReset("", 0)) {};
#endif
while (!SifIopSync()) {};
SifInitRpc(0);
#endif
SifLoadFileInit();
Expand Down

0 comments on commit 350d5a6

Please sign in to comment.