Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Jun 7, 2024
1 parent 2a00780 commit b178e29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/compat/psp/rebootex/patches.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ int patch_bootconf_pro(char *buffer, int length)
int result = length;
int newsize;

memset((void*)0x88FB0000, 0, 0x100);
memset(conf, 0, 0x100);
conf->magic = 0xC01DB15D;
conf->psp_model = psp_model;
conf->rebootex_size = 0;
Expand Down Expand Up @@ -349,9 +349,9 @@ int patch_bootconf_me_recovery(char *buffer, int length)

if (psp_model == PSP_GO)
{
newsize = AddPRX(buffer, "/module/mcore.prx", "/kd/usbstoreflash.prx", VSH_RUNLEVEL);
newsize = AddPRX(buffer, "/vsh/module/mcore.prx", "/kd/usbstoreflash.prx", VSH_RUNLEVEL);
if (newsize > 0) result = newsize;
RemovePrx(buffer, "/module/mcore.prx", VSH_RUNLEVEL);
RemovePrx(buffer, "/vsh/module/mcore.prx", VSH_RUNLEVEL);
}
}
#endif
Expand Down Expand Up @@ -562,7 +562,7 @@ int _sceBootLfatOpen(char * filename)
}

if (filename[12] == '_'){
psp_model = ((filename[13]-'0') + (filename[14]-'0')) - 1;
psp_model = (10*(filename[13]-'0') + (filename[14]-'0')) - 1;
}
}

Expand Down

0 comments on commit b178e29

Please sign in to comment.