Skip to content
Permalink
Browse files
VSOI now uses ux0:data/vsEboot.bin over app0:vsEboot.bin if it is found
  • Loading branch information
gnmmarechal committed Dec 16, 2018
1 parent e3284d1 commit 21427d5c9ebed51a830b97520926bdcc161c7d5f
Showing 10 changed files with 35 additions and 15 deletions.
BIN +176 KB VSOI.elf
Binary file not shown.
BIN +195 KB VSOI.velf
Binary file not shown.
BIN +237 Bytes (100%) VSOI.vpk
Binary file not shown.
BIN +199 KB eboot.bin
Binary file not shown.
BIN +2.73 KB font.o
Binary file not shown.
BIN +3.32 KB graphics.o
Binary file not shown.
50 main.c
@@ -90,7 +90,7 @@ int main(int argc, char *argv[]) {
void *buf = malloc(0x100);

psvDebugScreenInit();
printf("VSOI v0.2\n\n");
printf("VSOI v0.3\n\n");

// Second run
if (sceIoRemove("ux0:data/vsoi_flag.flg") < 0)
@@ -134,20 +134,40 @@ int main(int argc, char *argv[]) {

// Remove Near's eboot and copy VitaShell's to that directory
SceUID fd;
fd = sceIoOpen("app0:vsEboot.bin", SCE_O_RDONLY, 0777);
if (fd >= 0)
{
printf("Using app0:vsEboot.bin\n");
sceIoRemove("vs0:app/NPXS10000/eboot.bin");
if (cp("vs0:app/NPXS10000/eboot.bin", "app0:vsEboot.bin") >= 0)
printf("Successfully copied eboot to directory!\n");
else
printf("Error copying eboot to directory!\n");
}
else
{
printf("ERROR: VitaShell eboot not found!\n");
}

fd = sceIoOpen("ux0:data/vsEboot.bin", SCE_O_RDONLY, 0777);
if (fd >= 0)
{
printf("Using ux0:data/vsEboot.bin");
sceIoRemove("vs0:app/NPXS10000/eboot.bin");
if (cp("vs0:app/NPXS10000/eboot.bin", "ux0:data/vsEboot.bin"))
printf("Successfully copied eboot to directory!\n");
else
printf("Error copying eboot to directory!\n");

}
else
{
fd = sceIoOpen("app0:vsEboot.bin", SCE_O_RDONLY, 0777);
if (fd >= 0)
{
printf("Using app0:vsEboot.bin\n");
sceIoRemove("vs0:app/NPXS10000/eboot.bin");
if (cp("vs0:app/NPXS10000/eboot.bin", "app0:vsEboot.bin") >= 0)
printf("Successfully copied eboot to directory!\n");
else
printf("Error copying eboot to directory!\n");
}
else
{
printf("ERROR: VitaShell eboot not found! Exiting in 5 seconds...\n");
sceKernelDelayThread(5 * 1000 * 1000);
return 0;

}
}



// Back up HENkaku config
sceIoRemove("ux0:data/ux0_config.txt");
BIN +5.46 KB main.o
Binary file not shown.
Empty file.
BIN +912 Bytes param.sfo
Binary file not shown.

0 comments on commit 21427d5

Please sign in to comment.