Skip to content

Commit

Permalink
test homebrew dongleman
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Feb 26, 2024
1 parent c460105 commit 7377106
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ endif

ifeq ($(COH), 1)
CDVDFSV = 0
SIO2MAN = 0
MCMAN = 0
SIO2MAN = 1
MCMAN = 1
EE_OBJS += ioprp.o
EE_LIBS += -liopreboot
LIBPAD = 2
Expand Down
5 changes: 5 additions & 0 deletions embed.make
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ else # if we have mx4sio use newer IRX to avoid deadlocks when opening common me
SIO2MAN_SOURCE = iop/__precompiled/sio2man.irx
endif

ifeq ($(COH),1)
MCMAN_SOURCE = iop/__precompiled/dongleman.irx
EE_CFLAGS += -DHOMEBREW_DONGLEMAN
endif

#---{ MC }---#
$(EE_ASM_DIR)mcman_irx.s: $(MCMAN_SOURCE) | $(EE_ASM_DIR)
$(BIN2S) $< $@ mcman_irx
Expand Down
Binary file added iop/__precompiled/dongleman.irx
Binary file not shown.
7 changes: 4 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,11 +1171,12 @@ static void loadBasicModules(void)
id = SifLoadStartModule("rom0:MCSERV", 0, NULL, &ret);
DPRINTF(" [rom0:MCSERV]: id=%d, ret=%d\n", id, ret);
#else
#ifdef SUPPORT_SYSTEM_2X6
#error WARNING: youre building arcade wLaunchELF with homebrew MCMAN/MCSERV, this way you will not be able to access the security dongle
#endif
id = SifExecModuleBuffer(mcman_irx, size_mcman_irx, 0, NULL, &ret); //Home
#ifdef HOMEBREW_DONGLEMAN
DPRINTF(" [DONGLEMAN]: id=%d ret=%d\n", id, ret);
#else
DPRINTF(" [MCMAN]: id=%d ret=%d\n", id, ret);
#endif
id = SifExecModuleBuffer(mcserv_irx, size_mcserv_irx, 0, NULL, &ret); //Home
DPRINTF(" [MCSERV]: id=%d ret=%d\n", id, ret);
#endif
Expand Down

0 comments on commit 7377106

Please sign in to comment.