diff --git a/loader/dc/installer/main.c b/loader/dc/installer/main.c index 39788e0b..0e7a5ef3 100644 --- a/loader/dc/installer/main.c +++ b/loader/dc/installer/main.c @@ -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); diff --git a/loader/dc/vunbricker/install.c b/loader/dc/vunbricker/install.c index 4c09c1bc..eac2de40 100644 --- a/loader/dc/vunbricker/install.c +++ b/loader/dc/vunbricker/install.c @@ -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"); diff --git a/loader/perma/cipl/installer/main.c b/loader/perma/cipl/installer/main.c index 4108e752..18829f82 100644 --- a/loader/perma/cipl/installer/main.c +++ b/loader/perma/cipl/installer/main.c @@ -81,7 +81,6 @@ void ErrorExit(int milisecs, char *fmt, ...) sceKernelExitGame(); } //////////////////////////////////////// -u8 nand_buff[0x40000]; void flash_ipl(int size, u16 key) {