Skip to content

Commit

Permalink
disable debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Jan 20, 2024
1 parent 0240c88 commit bd2c349
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions core/vshctrl/vshpatch.c
Expand Up @@ -460,6 +460,17 @@ static void patch_vsh_module(SceModule2 * mod)
if(psp_model == PSP_GO && has_umd_iso) {
patch_vsh_module_for_pspgo_umdvideo(mod);
}

#if 0
_sb(0, mod->text_addr+0x1FF84); // enable xmb editing
_sb(7, mod->text_addr+0x54DC9); // unlock psn sign up item
_sb(7, mod->text_addr+0x54DD9); // unlock psn store item
_sb(7, mod->text_addr+0x54DE9); // unlock psn board item
_sb(7, mod->text_addr+0x54F65); // unlock psn sign up icon
_sb(7, mod->text_addr+0x54F79); // unlock psn store icon
_sb(7, mod->text_addr+0x54FC9); // unlock psn board icon
#endif

}

static void hook_iso_file_io(void)
Expand Down
2 changes: 1 addition & 1 deletion extras/modules/xmbctrl/main.c
Expand Up @@ -782,7 +782,7 @@ int vshGetRegistryValuePatched(u32 *option, char *name, void *arg2, int size, in

int res = vshGetRegistryValue(option, name, arg2, size, value);

#if 1
#if 0
char tmp[512];
snprintf(tmp, 512, "%s, %p, %p, %d, %d\n", name, option, arg2, size, *value);
int fd = sceIoOpen("ms0:/regvals.txt", PSP_O_WRONLY|PSP_O_APPEND|PSP_O_CREAT, 0777);
Expand Down

0 comments on commit bd2c349

Please sign in to comment.