Skip to content

Commit

Permalink
Fix exit function
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuHAK committed Oct 7, 2022
1 parent 8081818 commit 064109b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ char unlockNVM()
{
gsKit_clear(gsGlobal, Black);
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);

return 0;
}
Expand Down Expand Up @@ -338,7 +338,7 @@ void selectCexDex(char *isDex)
if (selected == -1)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}

Expand Down Expand Up @@ -384,7 +384,7 @@ void selectRegion(char isDex, uint8_t **region_params, uint8_t **region_cipherte
if (selected == -1)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
else
Expand Down Expand Up @@ -606,7 +606,7 @@ char backupNVM()
if (new_pad & PAD_CROSS)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
}
Expand Down Expand Up @@ -668,7 +668,7 @@ char applyPatches(char isDex)
if (selected == -1)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
else if (selected == 1)
Expand Down Expand Up @@ -742,7 +742,7 @@ char applyPatches(char isDex)
if (new_pad & PAD_CROSS)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
}
Expand Down Expand Up @@ -775,7 +775,7 @@ char applyPatches(char isDex)
if (new_pad & PAD_CROSS)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
}
Expand Down Expand Up @@ -923,7 +923,7 @@ void checkFMCB()
{
gsKit_clear(gsGlobal, Black);
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
}
}
}
Expand Down Expand Up @@ -1089,7 +1089,7 @@ void checkUnsupportedVersion()
else if (ModelId == 0xd31e)
sprintf(RealModelName, "DTL-H70002");
/* else if (ModelId == 0xd31f)
sprintf(RealModelName, "???");
sprintf(RealModelName, "DTL-H70011S ???");
else if (ModelId == 0xd320)
sprintf(RealModelName, "???");
else if (ModelId == 0xd321)
Expand Down Expand Up @@ -1601,7 +1601,7 @@ char restoreBackup()
if (new_pad & PAD_CROSS)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
}
Expand Down Expand Up @@ -1728,7 +1728,7 @@ int main()
if (selected == -1)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
else if (selected == 0)
Expand All @@ -1752,7 +1752,7 @@ int main()
if (selected == -1)
{
ResetIOP();
LoadExecPS2("rom0:OSDSYS", 0, NULL);
Exit(0);
SleepThread();
}
else if (selected == 0)
Expand Down

0 comments on commit 064109b

Please sign in to comment.