Skip to content

Commit

Permalink
Fix VMC compile support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf3s committed Dec 3, 2024
1 parent c234e04 commit b8c76b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ ifeq ($(PADEMU),1)
IOP_OBJS += pademu.o ds34usb.o ds34bt.o libds34usb.a libds34bt.a
EE_CFLAGS += -DPADEMU
EE_INCS += -Imodules/ds34bt/ee -Imodules/ds34usb/ee
PADEMU_FLAGS = PADEMU=1
PADEMU_FLAGS = PADEMU=1 VMC=1
else
PADEMU_FLAGS = PADEMU=0
PADEMU_FLAGS = PADEMU=0 VMC=1
endif

ifeq ($(DEBUG),1)
Expand Down Expand Up @@ -328,7 +328,7 @@ clean: download_lwNBD
echo " -ds34bt"
$(MAKE) -C modules/ds34bt clean
echo " -pademu"
$(MAKE) -C modules/pademu USE_DS3=1 USE_DS4=1 clean
$(MAKE) -C modules/pademu USE_DS3=1 USE_DS4=1 VMC=1 clean
echo "-pc tools"
$(MAKE) -C pc clean

Expand Down Expand Up @@ -521,7 +521,7 @@ $(EE_ASM_DIR)ds34usb.c: modules/ds34usb/iop/ds34usb.irx | $(EE_ASM_DIR)
$(BIN2C) $< $@ $(*F)_irx

modules/pademu/pademu.irx: modules/pademu
$(MAKE) USE_DS3=1 USE_DS4=1 -C $< all
$(MAKE) USE_DS3=1 USE_DS4=1 VMC=1 -C $< all

$(EE_ASM_DIR)pademu.c: modules/pademu/pademu.irx
$(BIN2C) $< $@ $(*F)_irx
Expand Down
2 changes: 2 additions & 0 deletions modules/pademu/pademu.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ int _start(int argc, char *argv[])

SetRebootTimeLibraryHandlingMode(&_exp_pademu, 2);

#ifdef VMC
u8 vmc = 0;

if (argc > 1)
Expand All @@ -135,6 +136,7 @@ int _start(int argc, char *argv[])
if (!install_sio2hook())
return MODULE_NO_RESIDENT_END;
}
#endif

pademu_setup(pad_enable, pad_vibration);

Expand Down

0 comments on commit b8c76b9

Please sign in to comment.