Skip to content

Commit

Permalink
Update to the latest version of PS2SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf3s authored and F0bes committed Feb 4, 2024
1 parent 16689b5 commit eb709be
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 2,952 deletions.
20 changes: 10 additions & 10 deletions HIDMouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ SOFTWARE.
#include <dmaKit.h>
#include <gsToolkit.h>

extern unsigned int size_iomanX;
extern unsigned char iomanX[];
extern unsigned int size_iomanX_irx;
extern unsigned char iomanX_irx[];

extern unsigned int size_usbd;
extern unsigned char usbd[];
extern unsigned int size_usbd_irx;
extern unsigned char usbd_irx[];

extern unsigned int size_ps2mouse;
extern unsigned char ps2mouse[];
extern unsigned int size_ps2mouse_irx;
extern unsigned char ps2mouse_irx[];

gsGlobal *g_gsInst;

u64 gs_BackgroundColors[] =
u64 gs_BackgroundColors[] =
{
GS_SETREG_RGBAQ(255,0,0,0,0),
GS_SETREG_RGBAQ(0,255,0,0,0),
Expand All @@ -74,11 +74,11 @@ int main(void)
SifInitRpc(0);
sbv_patch_enable_lmb(); // Wasted a couple hours only to find out this needs to be called

int ret = SifExecModuleBuffer(iomanX,size_iomanX,0,NULL,NULL);
int ret = SifExecModuleBuffer(iomanX_irx,size_iomanX_irx,0,NULL,NULL);
printf("iomanx module id %d\n",ret);
ret = SifExecModuleBuffer(usbd,size_usbd,0,NULL,NULL);
ret = SifExecModuleBuffer(usbd_irx,size_usbd_irx,0,NULL,NULL);
printf("usbd module id %d\n",ret);
ret = SifExecModuleBuffer(ps2mouse,size_ps2mouse,0,NULL,NULL);
ret = SifExecModuleBuffer(ps2mouse_irx,size_ps2mouse_irx,0,NULL,NULL);
printf("ps2mouse module id %d\n",ret);

ret = PS2MouseInit();
Expand Down
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
EE_OBJS = HIDMouse.o irx/iomanX.cpp irx/ps2mouse.cpp irx/usbd.cpp
EE_OBJS = HIDMouse.o iomanX.o ps2mouse.o usbd.o
EE_BIN = HIDMouse.elf
EE_LIBS = -L$(GSKIT)/lib -lkernel -lgskit -ldmakit -lmouse -lpatches -lgskit_toolkit
EE_LIBS = -L$(GSKIT)/lib -L$(PS2SDK)/ports/lib -lkernel -lgskit -ldmakit -lmouse -lpatches -lpng -lz -lgskit_toolkit
EE_INCS += -I$(GSKIT)/include -I$(PS2DEV)/ports/libpng/include

all: $(EE_BIN)

BIN2C = $(PS2SDK)/bin/bin2c

iomanX.c: $(PS2SDK)/iop/irx/iomanX.irx | $(EE_ASM_DIR)
$(BIN2C) $< $@ iomanX_irx

ps2mouse.c: $(PS2SDK)/iop/irx/ps2mouse.irx | $(EE_ASM_DIR)
$(BIN2C) $< $@ ps2mouse_irx

usbd.c: $(PS2SDK)/iop/irx/usbd.irx | $(EE_ASM_DIR)
$(BIN2C) $< $@ usbd_irx

clean:
rm -f $(EE_BIN) $(EE_OBJS)

Expand Down
683 changes: 0 additions & 683 deletions irx/iomanX.cpp

This file was deleted.

Binary file removed irx/iomanX.irx
Binary file not shown.
597 changes: 0 additions & 597 deletions irx/ps2mouse.cpp

This file was deleted.

Binary file removed irx/ps2mouse.irx
Binary file not shown.
1,660 changes: 0 additions & 1,660 deletions irx/usbd.cpp

This file was deleted.

Binary file removed irx/usbd.irx
Binary file not shown.

0 comments on commit eb709be

Please sign in to comment.