Skip to content

Commit

Permalink
prevent users from bricking their 03g+ with restore ipl
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Apr 21, 2024
1 parent fb5d2e7 commit 56a1444
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions loader/perma/cipl/installer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <origipl_09G.h>
#include <origipl_11G.h>


PSP_MODULE_INFO("IPLFlasher", 0x0800, 1, 0);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_VSH);

Expand All @@ -46,7 +45,8 @@ PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_VSH);

#define KBOOTI_UPDATE_PRX "kbooti_update.prx"

#define ORIG_IPL_SIZE 126976
//#define ORIG_IPL_SIZE 126976
#define ORIG_IPL_SIZE 127312
#define ORIG_IPL_MAX_SIZE 131072
#define CLASSIC_CIPL_SIZE 147456
#define NEW_CIPL_SIZE 184320
Expand Down Expand Up @@ -369,7 +369,12 @@ void newipl_menu(){

printf(" Press X to install cIPL\n");

printf(" Press O to restore Original IPL\n");
if (model > 1 || is_ta88v3()) {
printf(" Use ChronoSwitch to revert to Original IPL.\n");
}
else {
printf(" Press O to restore Original IPL.\n");
}

printf(" Press R to cancel\n\n");

Expand All @@ -385,7 +390,7 @@ void newipl_menu(){
if (pspIplUpdateSetIpl(ipl_block, size, 0 ) < 0)
ErrorExit(5000,"Failed to write cIPL!\n");
break;
} else if ( (pad.Buttons & PSP_CTRL_CIRCLE) ) {
} else if ( ((pad.Buttons & PSP_CTRL_CIRCLE) && model < 2) && !is_ta88v3()) {
printf("Flashing IPL...");

ipl_block = orig_ipl_table[model];
Expand Down

0 comments on commit 56a1444

Please sign in to comment.