Skip to content

Commit

Permalink
fix DC installer on PSP
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Apr 16, 2024
1 parent 3f2dbe9 commit 96f8e1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions loader/dc/installer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,14 @@ void ExtractPrxs(int cbFile, SceUID fd)
{
memcpy(g_dataOut2, g_dataOut, cbExpanded);
}

char iplpath[256];
char* iplname = strstr(name, "ipl_");
sprintf(iplpath, "%s/%s", ARK_DC_PATH, iplname);

char* ext = strstr(iplpath, ".ipl");
if (ext) strcpy(ext, ".bin");

if (WriteFile(iplpath, g_dataOut2, cbExpanded) != (cbExpanded))
{
sprintf(iplpath, "Error writing %s/%s", ARK_DC_PATH, iplname);
Expand Down
4 changes: 3 additions & 1 deletion loader/dc/vunbricker/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,9 @@ int install_thread(SceSize args, void *argp)
size = offset+ReadFile(ipl_name, 0, big_buffer+offset, BIG_BUFFER_SIZE-offset);
if (size-offset <= 0)
{
InstallError(fw, "Cannot read nandipl\n");
char msg[128];
sprintf(msg, "Cannot read %s\n", ipl_name);
InstallError(fw, msg);
}

dcPatchModuleString("IoPrivileged", "IoPrivileged", "IoPrivileged");
Expand Down
1 change: 0 additions & 1 deletion loader/perma/cipl/installer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ void ErrorExit(int milisecs, char *fmt, ...)
sceKernelExitGame();
}
////////////////////////////////////////
u8 nand_buff[0x40000];
void flash_ipl(int size, u16 key)
{

Expand Down

0 comments on commit 96f8e1a

Please sign in to comment.