2 Copyright 2010, jimmikaelakel
3 Licenced under Academic Free License version 3.0
4 Review OpenUsbLd README & LICENSE files for further details.
7 #include "include/usbld.h"
8 #include "include/system.h"
9 #include "include/ioman.h"
11 extern void *ps2dev9_irx
;
12 extern int size_ps2dev9_irx
;
14 extern void *smstcpip_irx
;
15 extern int size_smstcpip_irx
;
17 extern void *ingame_smstcpip_irx
;
18 extern int size_ingame_smstcpip_irx
;
20 extern void *smsmap_irx
;
21 extern int size_smsmap_irx
;
23 extern void *udptty_irx
;
24 extern int size_udptty_irx
;
26 extern void *ioptrap_irx
;
27 extern int size_ioptrap_irx
;
29 extern void *ps2link_irx
;
30 extern int size_ps2link_irx
;
32 extern void *smsutils_irx
;
33 extern int size_smsutils_irx
;
36 int debugSetActive(void) {
38 char ipconfig
[IPCONFIG_MAX_LEN
] __attribute__((aligned(64)));
40 ipconfiglen
= sysSetIPConfig(ipconfig
);
42 ret
= sysLoadModuleBuffer(&ps2dev9_irx
, size_ps2dev9_irx
, 0, NULL
);
46 ret
= sysLoadModuleBuffer(&smsutils_irx
, size_smsutils_irx
, 0, NULL
);
50 ret
= sysLoadModuleBuffer(&smstcpip_irx
, size_smstcpip_irx
, 0, NULL
);
54 ret
= sysLoadModuleBuffer(&smsmap_irx
, size_smsmap_irx
, ipconfiglen
, ipconfig
);
58 ret
= sysLoadModuleBuffer(&udptty_irx
, size_udptty_irx
, 0, NULL
);
62 ret
= sysLoadModuleBuffer(&ioptrap_irx
, size_ioptrap_irx
, 0, NULL
);
66 ret
= sysLoadModuleBuffer(&ps2link_irx
, size_ps2link_irx
, 0, NULL
);