Skip to content

Commit

Permalink
Use padman and sio2man from ps2sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Jun 30, 2021
1 parent 4f9831d commit 87d9734
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ EE_BIN = BOOT-UNC.ELF
EE_BIN_PKD = BOOT.ELF
EE_OBJS = main.o pad.o config.o elf.o draw.o loader_elf.o filer.o \
poweroff_irx.o iomanx_irx.o filexio_irx.o ps2atad_irx.o ps2dev9_irx.o ps2ip_irx.o\
ps2smap_irx.o ps2hdd_irx.o ps2fs_irx.o ps2netfs_irx.o usbd_irx.o usbhdfsd_irx.o mcman_irx.o mcserv_irx.o\
ps2smap_irx.o ps2hdd_irx.o ps2fs_irx.o ps2netfs_irx.o usbd_irx.o usbhdfsd_irx.o\
sio2man_irx.o mcman_irx.o mcserv_irx.o padman_irx.o\
cdfs_irx.o ps2ftpd_irx.o ps2host_irx.o vmc_fs_irx.o ps2kbd_irx.o\
hdd.o hdl_rpc.o hdl_info_irx.o editor.o timer.o jpgviewer.o icon.o lang.o\
font_uLE.o makeicon.o chkesr.o sior_irx.o allowdvdv_irx.o
Expand Down Expand Up @@ -54,12 +55,18 @@ githash.h:
git rev-parse --short HEAD | tr -d "\n" >> $@ && \
printf '"\n#endif\n' >> $@

sio2man_irx.s: $(PS2SDK)/iop/irx/sio2man.irx
$(BIN2S) $< $@ sio2man_irx

mcman_irx.s: $(PS2SDK)/iop/irx/mcman.irx
$(BIN2S) $< $@ mcman_irx

mcserv_irx.s: $(PS2SDK)/iop/irx/mcserv.irx
$(BIN2S) $< $@ mcserv_irx

padman_irx.s: $(PS2SDK)/iop/irx/padman.irx
$(BIN2S) $< $@ padman_irx

usbd_irx.s: $(PS2SDK)/iop/irx/usbd.irx
$(BIN2S) $< $@ usbd_irx

Expand Down
8 changes: 6 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ extern u8 ps2kbd_irx[];
extern int size_ps2kbd_irx;
extern u8 hdl_info_irx[];
extern int size_hdl_info_irx;
extern u8 sio2man_irx[];
extern int size_sio2man_irx;
extern u8 mcman_irx[];
extern int size_mcman_irx;
extern u8 mcserv_irx[];
extern int size_mcserv_irx;
extern u8 padman_irx[];
extern int size_padman_irx;
extern u8 sior_irx[];
extern int size_sior_irx;
extern u8 allowdvdv_irx[];
Expand Down Expand Up @@ -915,7 +919,7 @@ static void loadBasicModules(void)

SifExecModuleBuffer(allowdvdv_irx, size_allowdvdv_irx, 0, NULL, &ret); //unlocks cdvd for reading on psx dvr

SifLoadModule("rom0:SIO2MAN", 0, NULL);
SifExecModuleBuffer(sio2man_irx, size_sio2man_irx, 0, NULL, &ret);

#ifdef SIO_DEBUG
int id;
Expand All @@ -934,7 +938,7 @@ static void loadBasicModules(void)
//SifLoadModule("rom0:MCMAN", 0, NULL); //Sony
SifExecModuleBuffer(mcserv_irx, size_mcserv_irx, 0, NULL, &ret); //Home
//SifLoadModule("rom0:MCSERV", 0, NULL); //Sony
SifLoadModule("rom0:PADMAN", 0, NULL);
SifExecModuleBuffer(padman_irx, size_padman_irx, 0, NULL, &ret);
}
//------------------------------
//endfunc loadBasicModules
Expand Down

0 comments on commit 87d9734

Please sign in to comment.