Skip to content

Commit

Permalink
Real cIPL installer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia authored Apr 15, 2024
1 parent 24a18fb commit 3f2dbe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/perma/cipl/installer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void flash_ipl(int size, u16 key)
if(pspIplUpdateClearIpl() < 0)
ErrorExit(5000,"Failed to clear ipl!\n");

if (pspIplUpdateSetIpl(ipl_block , size + 0x4000, key ) < 0)
if (pspIplUpdateSetIpl(ipl_block , size, key ) < 0)
ErrorExit(5000,"Failed to write ipl!\n");

printf("Done.\n");
Expand Down Expand Up @@ -204,7 +204,7 @@ void classicipl_menu(){
sceCtrlReadBufferPositive(&pad, 1);

if (pad.Buttons & PSP_CTRL_CROSS) {
flash_ipl( size, 0 );
flash_ipl( size+0x4000, 0 );
break;
} else if ( (pad.Buttons & PSP_CTRL_CIRCLE) && ipl_type ) {
printf("Flashing IPL...");
Expand Down

0 comments on commit 3f2dbe9

Please sign in to comment.