diff --git a/Makefile b/Makefile index 09411e3..e406a88 100644 --- a/Makefile +++ b/Makefile @@ -32,17 +32,32 @@ TARGET := hidtovpad BUILD := build BUILD_DBG := $(TARGET)_dbg SOURCES := src \ - src/dynamic_libs \ - src/controller_patcher \ - src/game \ - src/kernel \ - src/patcher \ src/common \ + src/controller_patcher \ + src/controller_patcher/utils \ + src/controller_patcher/network \ + src/controller_patcher/patcher \ + src/controller_patcher/config \ + src/dynamic_libs \ + src/fs \ + src/game \ + src/gui \ + src/kernel \ + src/menu \ + src/menu/tv \ + src/menu/drc \ + src/menu/drc/content \ + src/patcher \ + src/resources \ + src/sounds \ src/system \ src/utils \ src/video \ - src/video/shaders -DATA := + src/video/shaders +DATA := data \ + data/images \ + data/fonts \ + data/sounds INCLUDES := src @@ -62,7 +77,7 @@ MAKEFLAGS += --no-print-directory #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project #--------------------------------------------------------------------------------- -LIBS := +LIBS := -lgcc -lgd -lpng -ljpeg -lz -lfreetype -lmad -lvorbisidec #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing @@ -88,6 +103,7 @@ export DEPSDIR := $(CURDIR)/$(BUILD) #--------------------------------------------------------------------------------- # automatically build a list of object files for our project #--------------------------------------------------------------------------------- +FILELIST := $(shell bash ./filelist.sh) CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) diff --git a/data/fonts/font.ttf b/data/fonts/font.ttf new file mode 100644 index 0000000..04be6f5 Binary files /dev/null and b/data/fonts/font.ttf differ diff --git a/data/images/GithubIcon.png b/data/images/GithubIcon.png new file mode 100644 index 0000000..f8e08f6 Binary files /dev/null and b/data/images/GithubIcon.png differ diff --git a/data/images/HomeButtonIcon.png b/data/images/HomeButtonIcon.png new file mode 100644 index 0000000..22f528d Binary files /dev/null and b/data/images/HomeButtonIcon.png differ diff --git a/data/images/InputGetterBG.png b/data/images/InputGetterBG.png new file mode 100644 index 0000000..6ac1bde Binary files /dev/null and b/data/images/InputGetterBG.png differ diff --git a/data/images/ItemBackgroundBig.png b/data/images/ItemBackgroundBig.png new file mode 100644 index 0000000..726c6f2 Binary files /dev/null and b/data/images/ItemBackgroundBig.png differ diff --git a/data/images/ItemBackgroundSmall.png b/data/images/ItemBackgroundSmall.png new file mode 100644 index 0000000..2d3f511 Binary files /dev/null and b/data/images/ItemBackgroundSmall.png differ diff --git a/data/images/MainWindowTVBackground.jpg b/data/images/MainWindowTVBackground.jpg new file mode 100644 index 0000000..c44e4b1 Binary files /dev/null and b/data/images/MainWindowTVBackground.jpg differ diff --git a/data/images/MainWindowTVBackgroundBanner.png b/data/images/MainWindowTVBackgroundBanner.png new file mode 100644 index 0000000..b94cfc6 Binary files /dev/null and b/data/images/MainWindowTVBackgroundBanner.png differ diff --git a/data/images/PlusButtonIcon.png b/data/images/PlusButtonIcon.png new file mode 100644 index 0000000..a58807d Binary files /dev/null and b/data/images/PlusButtonIcon.png differ diff --git a/data/images/TVElementControllerBG.png b/data/images/TVElementControllerBG.png new file mode 100644 index 0000000..a1d62da Binary files /dev/null and b/data/images/TVElementControllerBG.png differ diff --git a/data/images/TVElementControllerBGSelected.png b/data/images/TVElementControllerBGSelected.png new file mode 100644 index 0000000..0c0a33c Binary files /dev/null and b/data/images/TVElementControllerBGSelected.png differ diff --git a/data/images/TwitterIcon.png b/data/images/TwitterIcon.png new file mode 100644 index 0000000..4f575c9 Binary files /dev/null and b/data/images/TwitterIcon.png differ diff --git a/data/images/aboutIcon.png b/data/images/aboutIcon.png new file mode 100644 index 0000000..0f82843 Binary files /dev/null and b/data/images/aboutIcon.png differ diff --git a/data/images/buttons_gamepad_a.png b/data/images/buttons_gamepad_a.png new file mode 100644 index 0000000..600e7fd Binary files /dev/null and b/data/images/buttons_gamepad_a.png differ diff --git a/data/images/buttons_gamepad_b.png b/data/images/buttons_gamepad_b.png new file mode 100644 index 0000000..2f739bd Binary files /dev/null and b/data/images/buttons_gamepad_b.png differ diff --git a/data/images/buttons_gamepad_controller.png b/data/images/buttons_gamepad_controller.png new file mode 100644 index 0000000..1bfc75e Binary files /dev/null and b/data/images/buttons_gamepad_controller.png differ diff --git a/data/images/buttons_gamepad_dpad_down.png b/data/images/buttons_gamepad_dpad_down.png new file mode 100644 index 0000000..ecbb562 Binary files /dev/null and b/data/images/buttons_gamepad_dpad_down.png differ diff --git a/data/images/buttons_gamepad_dpad_left.png b/data/images/buttons_gamepad_dpad_left.png new file mode 100644 index 0000000..bd96330 Binary files /dev/null and b/data/images/buttons_gamepad_dpad_left.png differ diff --git a/data/images/buttons_gamepad_dpad_right.png b/data/images/buttons_gamepad_dpad_right.png new file mode 100644 index 0000000..b0af27a Binary files /dev/null and b/data/images/buttons_gamepad_dpad_right.png differ diff --git a/data/images/buttons_gamepad_dpad_up.png b/data/images/buttons_gamepad_dpad_up.png new file mode 100644 index 0000000..9deeb79 Binary files /dev/null and b/data/images/buttons_gamepad_dpad_up.png differ diff --git a/data/images/buttons_gamepad_home.png b/data/images/buttons_gamepad_home.png new file mode 100644 index 0000000..5dee53e Binary files /dev/null and b/data/images/buttons_gamepad_home.png differ diff --git a/data/images/buttons_gamepad_l.png b/data/images/buttons_gamepad_l.png new file mode 100644 index 0000000..26bd58f Binary files /dev/null and b/data/images/buttons_gamepad_l.png differ diff --git a/data/images/buttons_gamepad_l_stick.png b/data/images/buttons_gamepad_l_stick.png new file mode 100644 index 0000000..b1f348f Binary files /dev/null and b/data/images/buttons_gamepad_l_stick.png differ diff --git a/data/images/buttons_gamepad_l_stick_down.png b/data/images/buttons_gamepad_l_stick_down.png new file mode 100644 index 0000000..38f94ef Binary files /dev/null and b/data/images/buttons_gamepad_l_stick_down.png differ diff --git a/data/images/buttons_gamepad_l_stick_left.png b/data/images/buttons_gamepad_l_stick_left.png new file mode 100644 index 0000000..7584a09 Binary files /dev/null and b/data/images/buttons_gamepad_l_stick_left.png differ diff --git a/data/images/buttons_gamepad_l_stick_right.png b/data/images/buttons_gamepad_l_stick_right.png new file mode 100644 index 0000000..0530b92 Binary files /dev/null and b/data/images/buttons_gamepad_l_stick_right.png differ diff --git a/data/images/buttons_gamepad_l_stick_up.png b/data/images/buttons_gamepad_l_stick_up.png new file mode 100644 index 0000000..b6b1b59 Binary files /dev/null and b/data/images/buttons_gamepad_l_stick_up.png differ diff --git a/data/images/buttons_gamepad_minus.png b/data/images/buttons_gamepad_minus.png new file mode 100644 index 0000000..8f0c183 Binary files /dev/null and b/data/images/buttons_gamepad_minus.png differ diff --git a/data/images/buttons_gamepad_plus.png b/data/images/buttons_gamepad_plus.png new file mode 100644 index 0000000..e75d73f Binary files /dev/null and b/data/images/buttons_gamepad_plus.png differ diff --git a/data/images/buttons_gamepad_power.png b/data/images/buttons_gamepad_power.png new file mode 100644 index 0000000..63e9cd0 Binary files /dev/null and b/data/images/buttons_gamepad_power.png differ diff --git a/data/images/buttons_gamepad_r.png b/data/images/buttons_gamepad_r.png new file mode 100644 index 0000000..5b41382 Binary files /dev/null and b/data/images/buttons_gamepad_r.png differ diff --git a/data/images/buttons_gamepad_r_stick.png b/data/images/buttons_gamepad_r_stick.png new file mode 100644 index 0000000..0f6bb8f Binary files /dev/null and b/data/images/buttons_gamepad_r_stick.png differ diff --git a/data/images/buttons_gamepad_r_stick_down.png b/data/images/buttons_gamepad_r_stick_down.png new file mode 100644 index 0000000..a9dc90f Binary files /dev/null and b/data/images/buttons_gamepad_r_stick_down.png differ diff --git a/data/images/buttons_gamepad_r_stick_left.png b/data/images/buttons_gamepad_r_stick_left.png new file mode 100644 index 0000000..8c69148 Binary files /dev/null and b/data/images/buttons_gamepad_r_stick_left.png differ diff --git a/data/images/buttons_gamepad_r_stick_right.png b/data/images/buttons_gamepad_r_stick_right.png new file mode 100644 index 0000000..4024aa3 Binary files /dev/null and b/data/images/buttons_gamepad_r_stick_right.png differ diff --git a/data/images/buttons_gamepad_r_stick_up.png b/data/images/buttons_gamepad_r_stick_up.png new file mode 100644 index 0000000..eaa84d4 Binary files /dev/null and b/data/images/buttons_gamepad_r_stick_up.png differ diff --git a/data/images/buttons_gamepad_tv.png b/data/images/buttons_gamepad_tv.png new file mode 100644 index 0000000..bad795c Binary files /dev/null and b/data/images/buttons_gamepad_tv.png differ diff --git a/data/images/buttons_gamepad_x.png b/data/images/buttons_gamepad_x.png new file mode 100644 index 0000000..5402df3 Binary files /dev/null and b/data/images/buttons_gamepad_x.png differ diff --git a/data/images/buttons_gamepad_y.png b/data/images/buttons_gamepad_y.png new file mode 100644 index 0000000..3a04a46 Binary files /dev/null and b/data/images/buttons_gamepad_y.png differ diff --git a/data/images/buttons_gamepad_zl.png b/data/images/buttons_gamepad_zl.png new file mode 100644 index 0000000..7d4b962 Binary files /dev/null and b/data/images/buttons_gamepad_zl.png differ diff --git a/data/images/buttons_gamepad_zr.png b/data/images/buttons_gamepad_zr.png new file mode 100644 index 0000000..52d0079 Binary files /dev/null and b/data/images/buttons_gamepad_zr.png differ diff --git a/data/images/buttons_pro_a.png b/data/images/buttons_pro_a.png new file mode 100644 index 0000000..d6e4ef6 Binary files /dev/null and b/data/images/buttons_pro_a.png differ diff --git a/data/images/buttons_pro_b.png b/data/images/buttons_pro_b.png new file mode 100644 index 0000000..a52ccc2 Binary files /dev/null and b/data/images/buttons_pro_b.png differ diff --git a/data/images/buttons_pro_controller.png b/data/images/buttons_pro_controller.png new file mode 100644 index 0000000..e79c2da Binary files /dev/null and b/data/images/buttons_pro_controller.png differ diff --git a/data/images/buttons_pro_dpad_down.png b/data/images/buttons_pro_dpad_down.png new file mode 100644 index 0000000..8312381 Binary files /dev/null and b/data/images/buttons_pro_dpad_down.png differ diff --git a/data/images/buttons_pro_dpad_left.png b/data/images/buttons_pro_dpad_left.png new file mode 100644 index 0000000..ef8db00 Binary files /dev/null and b/data/images/buttons_pro_dpad_left.png differ diff --git a/data/images/buttons_pro_dpad_right.png b/data/images/buttons_pro_dpad_right.png new file mode 100644 index 0000000..bf0a2f4 Binary files /dev/null and b/data/images/buttons_pro_dpad_right.png differ diff --git a/data/images/buttons_pro_dpad_up.png b/data/images/buttons_pro_dpad_up.png new file mode 100644 index 0000000..3048869 Binary files /dev/null and b/data/images/buttons_pro_dpad_up.png differ diff --git a/data/images/buttons_pro_home.png b/data/images/buttons_pro_home.png new file mode 100644 index 0000000..b3936d0 Binary files /dev/null and b/data/images/buttons_pro_home.png differ diff --git a/data/images/buttons_pro_l.png b/data/images/buttons_pro_l.png new file mode 100644 index 0000000..35591a4 Binary files /dev/null and b/data/images/buttons_pro_l.png differ diff --git a/data/images/buttons_pro_l_stick.png b/data/images/buttons_pro_l_stick.png new file mode 100644 index 0000000..b945561 Binary files /dev/null and b/data/images/buttons_pro_l_stick.png differ diff --git a/data/images/buttons_pro_l_stick_down.png b/data/images/buttons_pro_l_stick_down.png new file mode 100644 index 0000000..7c32e6b Binary files /dev/null and b/data/images/buttons_pro_l_stick_down.png differ diff --git a/data/images/buttons_pro_l_stick_left.png b/data/images/buttons_pro_l_stick_left.png new file mode 100644 index 0000000..87bab99 Binary files /dev/null and b/data/images/buttons_pro_l_stick_left.png differ diff --git a/data/images/buttons_pro_l_stick_right.png b/data/images/buttons_pro_l_stick_right.png new file mode 100644 index 0000000..05e0f98 Binary files /dev/null and b/data/images/buttons_pro_l_stick_right.png differ diff --git a/data/images/buttons_pro_l_stick_up.png b/data/images/buttons_pro_l_stick_up.png new file mode 100644 index 0000000..8a017af Binary files /dev/null and b/data/images/buttons_pro_l_stick_up.png differ diff --git a/data/images/buttons_pro_minus.png b/data/images/buttons_pro_minus.png new file mode 100644 index 0000000..b07989e Binary files /dev/null and b/data/images/buttons_pro_minus.png differ diff --git a/data/images/buttons_pro_plus.png b/data/images/buttons_pro_plus.png new file mode 100644 index 0000000..b59d412 Binary files /dev/null and b/data/images/buttons_pro_plus.png differ diff --git a/data/images/buttons_pro_power.png b/data/images/buttons_pro_power.png new file mode 100644 index 0000000..22dcc0d Binary files /dev/null and b/data/images/buttons_pro_power.png differ diff --git a/data/images/buttons_pro_r.png b/data/images/buttons_pro_r.png new file mode 100644 index 0000000..58d9ab2 Binary files /dev/null and b/data/images/buttons_pro_r.png differ diff --git a/data/images/buttons_pro_r_stick.png b/data/images/buttons_pro_r_stick.png new file mode 100644 index 0000000..af6a6cb Binary files /dev/null and b/data/images/buttons_pro_r_stick.png differ diff --git a/data/images/buttons_pro_r_stick_down.png b/data/images/buttons_pro_r_stick_down.png new file mode 100644 index 0000000..4567974 Binary files /dev/null and b/data/images/buttons_pro_r_stick_down.png differ diff --git a/data/images/buttons_pro_r_stick_left.png b/data/images/buttons_pro_r_stick_left.png new file mode 100644 index 0000000..0ed7d97 Binary files /dev/null and b/data/images/buttons_pro_r_stick_left.png differ diff --git a/data/images/buttons_pro_r_stick_right.png b/data/images/buttons_pro_r_stick_right.png new file mode 100644 index 0000000..08353bd Binary files /dev/null and b/data/images/buttons_pro_r_stick_right.png differ diff --git a/data/images/buttons_pro_r_stick_up.png b/data/images/buttons_pro_r_stick_up.png new file mode 100644 index 0000000..025aeb2 Binary files /dev/null and b/data/images/buttons_pro_r_stick_up.png differ diff --git a/data/images/buttons_pro_x.png b/data/images/buttons_pro_x.png new file mode 100644 index 0000000..93ca96d Binary files /dev/null and b/data/images/buttons_pro_x.png differ diff --git a/data/images/buttons_pro_y.png b/data/images/buttons_pro_y.png new file mode 100644 index 0000000..405d5be Binary files /dev/null and b/data/images/buttons_pro_y.png differ diff --git a/data/images/buttons_pro_zl.png b/data/images/buttons_pro_zl.png new file mode 100644 index 0000000..9f29432 Binary files /dev/null and b/data/images/buttons_pro_zl.png differ diff --git a/data/images/buttons_pro_zr.png b/data/images/buttons_pro_zr.png new file mode 100644 index 0000000..f7ac168 Binary files /dev/null and b/data/images/buttons_pro_zr.png differ diff --git a/data/images/footer.png b/data/images/footer.png new file mode 100644 index 0000000..37976dc Binary files /dev/null and b/data/images/footer.png differ diff --git a/data/images/gamepad.png b/data/images/gamepad.png new file mode 100644 index 0000000..5a40905 Binary files /dev/null and b/data/images/gamepad.png differ diff --git a/data/images/gamepadBig.png b/data/images/gamepadBig.png new file mode 100644 index 0000000..0bb7fb6 Binary files /dev/null and b/data/images/gamepadBig.png differ diff --git a/data/images/gamepadIcon.png b/data/images/gamepadIcon.png new file mode 100644 index 0000000..abfeee2 Binary files /dev/null and b/data/images/gamepadIcon.png differ diff --git a/data/images/helpIcon.png b/data/images/helpIcon.png new file mode 100644 index 0000000..3ff517d Binary files /dev/null and b/data/images/helpIcon.png differ diff --git a/data/images/home.png b/data/images/home.png new file mode 100644 index 0000000..4dfa89f Binary files /dev/null and b/data/images/home.png differ diff --git a/data/images/homeIcon.png b/data/images/homeIcon.png new file mode 100644 index 0000000..5b4d47a Binary files /dev/null and b/data/images/homeIcon.png differ diff --git a/data/images/itemIcon.png b/data/images/itemIcon.png new file mode 100644 index 0000000..6b6a846 Binary files /dev/null and b/data/images/itemIcon.png differ diff --git a/data/images/itemIconBig.png b/data/images/itemIconBig.png new file mode 100644 index 0000000..75aa0b2 Binary files /dev/null and b/data/images/itemIconBig.png differ diff --git a/data/images/itemIconBigSelected.png b/data/images/itemIconBigSelected.png new file mode 100644 index 0000000..4cc6500 Binary files /dev/null and b/data/images/itemIconBigSelected.png differ diff --git a/data/images/ledoff.png b/data/images/ledoff.png new file mode 100644 index 0000000..cdd3902 Binary files /dev/null and b/data/images/ledoff.png differ diff --git a/data/images/ledon.png b/data/images/ledon.png new file mode 100644 index 0000000..eb0cbed Binary files /dev/null and b/data/images/ledon.png differ diff --git a/data/images/logo.png b/data/images/logo.png new file mode 100644 index 0000000..3e2c39b Binary files /dev/null and b/data/images/logo.png differ diff --git a/data/images/netbtn.png b/data/images/netbtn.png new file mode 100644 index 0000000..386eeff Binary files /dev/null and b/data/images/netbtn.png differ diff --git a/data/images/not_connected.png b/data/images/not_connected.png new file mode 100644 index 0000000..35e7534 Binary files /dev/null and b/data/images/not_connected.png differ diff --git a/data/images/player1_point.png b/data/images/player1_point.png new file mode 100644 index 0000000..c06c08c Binary files /dev/null and b/data/images/player1_point.png differ diff --git a/data/images/player2_point.png b/data/images/player2_point.png new file mode 100644 index 0000000..6e952d2 Binary files /dev/null and b/data/images/player2_point.png differ diff --git a/data/images/player3_point.png b/data/images/player3_point.png new file mode 100644 index 0000000..704f84e Binary files /dev/null and b/data/images/player3_point.png differ diff --git a/data/images/player4_point.png b/data/images/player4_point.png new file mode 100644 index 0000000..dd8f1ad Binary files /dev/null and b/data/images/player4_point.png differ diff --git a/data/images/proController.png b/data/images/proController.png new file mode 100644 index 0000000..faed2ec Binary files /dev/null and b/data/images/proController.png differ diff --git a/data/images/proControllerBig.png b/data/images/proControllerBig.png new file mode 100644 index 0000000..6240383 Binary files /dev/null and b/data/images/proControllerBig.png differ diff --git a/data/images/selectorBig.png b/data/images/selectorBig.png new file mode 100644 index 0000000..1e6daf9 Binary files /dev/null and b/data/images/selectorBig.png differ diff --git a/data/images/selectorSmall.png b/data/images/selectorSmall.png new file mode 100644 index 0000000..b705adf Binary files /dev/null and b/data/images/selectorSmall.png differ diff --git a/data/images/seperator.png b/data/images/seperator.png new file mode 100644 index 0000000..b086242 Binary files /dev/null and b/data/images/seperator.png differ diff --git a/data/images/settingButton.png b/data/images/settingButton.png new file mode 100644 index 0000000..ae07542 Binary files /dev/null and b/data/images/settingButton.png differ diff --git a/data/images/settingSelectedButton.png b/data/images/settingSelectedButton.png new file mode 100644 index 0000000..ae07542 Binary files /dev/null and b/data/images/settingSelectedButton.png differ diff --git a/data/images/twittergithub.png b/data/images/twittergithub.png new file mode 100644 index 0000000..f7e4fa8 Binary files /dev/null and b/data/images/twittergithub.png differ diff --git a/data/images/windowSplitter.png b/data/images/windowSplitter.png new file mode 100644 index 0000000..9b77d6e Binary files /dev/null and b/data/images/windowSplitter.png differ diff --git a/data/sounds/bgMusic.mp3 b/data/sounds/bgMusic.mp3 new file mode 100644 index 0000000..e0d963e Binary files /dev/null and b/data/sounds/bgMusic.mp3 differ diff --git a/data/sounds/button_click.mp3 b/data/sounds/button_click.mp3 new file mode 100644 index 0000000..ec4aad7 Binary files /dev/null and b/data/sounds/button_click.mp3 differ diff --git a/filelist.sh b/filelist.sh new file mode 100644 index 0000000..87cbee1 --- /dev/null +++ b/filelist.sh @@ -0,0 +1,83 @@ +#! /bin/bash +# +# Automatic resource file list generation +# Created by Dimok + +outFile="./src/resources/filelist.h" +count_old=$(cat $outFile 2>/dev/null | tr -d '\n\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/') + +count=0 +if [[ $OSTYPE == darwin* ]]; +then + +for i in $(gfind ./data/images/ ./data/sounds/ ./data/fonts/ -maxdepth 1 -type f \( ! -printf "%f\n" \) | sort -f) +do + files[count]=$i + count=$((count+1)) +done + +else + +for i in $(find ./data/images/ ./data/sounds/ ./data/fonts/ -maxdepth 1 -type f \( ! -printf "%f\n" \) | sort -f) +do + files[count]=$i + count=$((count+1)) +done + +fi + +if [ "$count_old" != "$count" ] || [ ! -f $outFile ] +then + +echo "Generating filelist.h for $count files." >&2 +cat < $outFile +/**************************************************************************** + * Loadiine resource files. + * This file is generated automatically. + * Includes $count files. + * + * NOTE: + * Any manual modification of this file will be overwriten by the generation. + ****************************************************************************/ +#ifndef _FILELIST_H_ +#define _FILELIST_H_ + +#include + +typedef struct _RecourceFile +{ + const char *filename; + const u8 *DefaultFile; + const u32 &DefaultFileSize; + u8 *CustomFile; + u32 CustomFileSize; +} RecourceFile; + +EOF + +for i in ${files[@]} +do + filename=${i%.*} + extension=${i##*.} + echo 'extern const u8 '$filename'_'$extension'[];' >> $outFile + echo 'extern const u32 '$filename'_'$extension'_size;' >> $outFile + echo '' >> $outFile +done + +echo 'static RecourceFile RecourceList[] =' >> $outFile +echo '{' >> $outFile + +for i in ${files[@]} +do + filename=${i%.*} + extension=${i##*.} + echo -e '\t{"'$i'", '$filename'_'$extension', '$filename'_'$extension'_size, NULL, 0},' >> $outFile +done + +echo -e '\t{NULL, NULL, 0, NULL, 0}' >> $outFile +echo '};' >> $outFile + +echo '' >> $outFile +echo '#endif' >> $outFile + +fi diff --git a/hidtopad.cbp b/hidtopad.cbp index 290efe5..d3e944a 100644 --- a/hidtopad.cbp +++ b/hidtopad.cbp @@ -6,6 +6,14 @@