Skip to content

Commit

Permalink
fixed out-of-bounds check and Custom App now works properly on ever…
Browse files Browse the repository at this point in the history
…ything
  • Loading branch information
krazynez committed Jan 4, 2024
1 parent 3cdf68a commit ff7a024
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extras/modules/xmbctrl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ int AddVshItemPatched(void *a0, int topitem, SceVshItem *item)
// Add Custom Launcher
new_item3 = addCustomVshItem(83, "msgtop_custom_launcher", sysconf_custom_launcher_arg, information_board_item);
AddVshItem(a0, topitem, new_item3);
if (se_config.magic != ARK_CONFIG_MAGIC) sctrlSEGetConfig(&se_config);

if(se_config.customapp) {
new_item4 = addCustomVshItem(84, "msgtop_custom_app", sysconf_custom_app_arg, information_board_item);
Expand Down Expand Up @@ -544,9 +545,9 @@ void AddSysconfContextItem(char *text, char *subtitle, char *regkey)
}

int skipSetting(int i){
if (IS_VITA_ADR((&ark_conf))) return ( i==0 || i==5 || i==9 || i==12 || i==14 || i == 15 || i==16 || i==18);
else if (psp_model == PSP_1000) return ( i == 0 || i == 5 || i == 6 || i == 9 || i == 12 || i==18);
else if (psp_model == PSP_11000) return ( i == 5 || i == 9 || i == 12 || i == 13 || i == 18);
if (IS_VITA_ADR((&ark_conf))) return ( i==0 || i==5 || i==9 || i==12 || i==14 || i == 15 || i==16);
else if (psp_model == PSP_1000) return ( i == 0 || i == 5 || i == 6 || i == 9 || i == 12);
else if (psp_model == PSP_11000) return ( i == 5 || i == 9 || i == 12 || i == 13);
else if (psp_model != PSP_GO) return ( i == 5 || i == 9 || i == 12);
else if (psp_model == PSP_GO) return (i == 16);
return 0;
Expand Down

0 comments on commit ff7a024

Please sign in to comment.