Skip to content

Commit

Permalink
Load arguments changed in payload
Browse files Browse the repository at this point in the history
  • Loading branch information
parrado committed Apr 14, 2021
1 parent 0eaa91f commit 5814817
Show file tree
Hide file tree
Showing 30 changed files with 13,200 additions and 8 deletions.
Binary file added mbr/lzma-stub.o
Binary file not shown.
Binary file added mbr/lzma/libzma.a
Binary file not shown.
Binary file added mbr/lzma/obj/Alloc.o
Binary file not shown.
Binary file added mbr/lzma/obj/LzFind.o
Binary file not shown.
Binary file added mbr/lzma/obj/LzmaDec.o
Binary file not shown.
Binary file added mbr/lzma/obj/LzmaEnc.o
Binary file not shown.
Binary file added mbr/main.o
Binary file not shown.
Binary file added mbr/mbr-stripped.elf
Binary file not shown.
Binary file added mbr/mbr.bin
Binary file not shown.
Binary file added mbr/mbr.elf
Binary file not shown.
Binary file added mbr/payload.o
Binary file not shown.
6,180 changes: 6,180 additions & 0 deletions mbr/payload.s

Large diffs are not rendered by default.

Binary file added payload/ATAD_irx.o
Binary file not shown.
Binary file added payload/DEV9_irx.o
Binary file not shown.
Binary file added payload/FILEXIO_irx.o
Binary file not shown.
Binary file added payload/HDD_irx.o
Binary file not shown.
Binary file added payload/IOMANX_irx.o
Binary file not shown.
Binary file added payload/PADMAN_irx.o
Binary file not shown.
Binary file added payload/PFS_irx.o
Binary file not shown.
Binary file added payload/SIO2MAN_irx.o
Binary file not shown.
Binary file added payload/loader_elf.o
Binary file not shown.
7,009 changes: 7,009 additions & 0 deletions payload/loader_elf.s

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions payload/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ int main(int argc, char *argv[])
int lastKey = 0;
int keyStatus;
int isEarlyJap = 0;
char *argv[2];

InitPS2();

Expand Down Expand Up @@ -355,30 +356,32 @@ int main(int argc, char *argv[])
if (lastKey & PAD_CIRCLE)
{
if (file_exists("pfs0:ULE.ELF"))
LoadElf("pfs0:ULE.ELF", "pfs0:");
LoadElf("pfs0:ULE.ELF", "hdd0:PP.SOFTDEV2.APPS");



if (file_exists("pfs0:OPNPS2LD.ELF"))
LoadElf("pfs0:OPNPS2LD.ELF", "pfs0:");
LoadElf("pfs0:OPNPS2LD.ELF", "hdd0:PP.SOFTDEV2.APPS");

}
else
{
if (file_exists("pfs0:OPNPS2LD.ELF"))
LoadElf("pfs0:OPNPS2LD.ELF", "pfs0:");
LoadElf("pfs0:OPNPS2LD.ELF", "hdd0:PP.SOFTDEV2.APPS");



if (file_exists("pfs0:ULE.ELF"))
LoadElf("pfs0:ULE.ELF", "pfs0:");
LoadElf("pfs0:ULE.ELF", "hdd0:PP.SOFTDEV2.APPS");

}

__asm__ __volatile__(
" li $3, 0x04;"
" syscall;"
" nop;");

argv[0]="BootBrowser";
argv[1]="SkipHdd";


LoadExecPS2("rom0:OSDSYS", 2, argv);
return 0;


Expand Down
Binary file added payload/main.o
Binary file not shown.
Binary file added payload/pad.o
Binary file not shown.
Binary file added payload/payload-stripped.elf
Binary file not shown.
Binary file added payload/payload.bin
Binary file not shown.
Binary file added payload/payload.elf
Binary file not shown.
Binary file added payload/ps2_asm.o
Binary file not shown.
Binary file added payload/timer.o
Binary file not shown.

0 comments on commit 5814817

Please sign in to comment.