diff --git a/.gitignore b/.gitignore
index 1eb6717..da70498 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,4 +51,7 @@ hidtopad.cbp
wiiu/*
hidtovpad.elf
hidtovpad_dbg.elf
-hidtopad.cscope_file_list
\ No newline at end of file
+hidtopad.cscope_file_list
+hidtopad.cbp
+hidtopad.layout
+hidtopad.cbp
\ No newline at end of file
diff --git a/.gitmodules b/.gitmodules
index 9291d9a..e69de29 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +0,0 @@
-[submodule "src/dynamic_libs"]
- path = src/dynamic_libs
- url = https://github.com/Maschell/dynamic_libs
-[submodule "src/controller_patcher"]
- path = src/controller_patcher
- url = https://github.com/Maschell/controller_patcher
diff --git a/.travis.yml b/.travis.yml
index d3e6f30..fe16737 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,18 +29,42 @@ addons:
before_install:
- export DEVKITPRO=/home/travis/devkitPro
- export DEVKITPPC=${DEVKITPRO}/devkitPPC
+- export DEVKITTMP=${DEVKITPRO}/tmp
- mkdir -p $DEVKITPRO
+- mkdir -p $DEVKITPRO/portlibs
+- mkdir -p $DEVKITTMP
- cd $DEVKITPRO
- wget -N https://raw.githubusercontent.com/Maschell/hid_to_vpad/master/other/devkitPPCupdatePPCr29.pl
-- wget -N https://raw.githubusercontent.com/Maschell/hid_to_vpad/master/other/libogc.7z
-- wget -N https://raw.githubusercontent.com/Maschell/hid_to_vpad/master/other/portlibs.7z
install:
- cd $DEVKITPRO
- perl devkitPPCupdatePPCr29.pl
-- 7z x -y libogc.7z
-- 7z x -y portlibs.7z
-- cp -R portlibs/ppc/* devkitPPC/
+- cd $DEVKITTMP
+- git clone https://github.com/Maschell/dynamic_libs.git -b lib
+- cd dynamic_libs/libs
+- 7z x -y portlibs.zip
+- cp -R portlibs/* $DEVKITPRO
+- cd $DEVKITTMP/dynamic_libs
+- make -j8
+- make install
+- cd $DEVKITTMP
+- rm *
+- git clone https://github.com/Maschell/libutils.git
+- cd libutils
+- make -j8
+- make install
+- cd $DEVKITTMP
+- rm *
+- git clone https://github.com/Maschell/libgui.git
+- cd libgui/libs
+- 7z x -y portlibs.zip
+- cp -R portlibs/* $DEVKITPRO
+- cd $DEVKITTMP/libgui
+- make -j8
+- make install
+- cd $DEVKITTMP
+- rm *
+- cd $DEVKITPRO
before_script:
- cd $TRAVIS_BUILD_DIR/
diff --git a/Makefile b/Makefile
index 45dcc40..12d49ad 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+DO_LOGGING := 0
+
#---------------------------------------------------------------------------------
# Clear the implicit built in rules
#---------------------------------------------------------------------------------
@@ -33,16 +35,7 @@ BUILD := build
BUILD_DBG := $(TARGET)_dbg
SOURCES := src \
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/language \
src/menu \
src/menu/tv \
@@ -50,12 +43,8 @@ SOURCES := src \
src/menu/drc/content \
src/patcher \
src/resources \
- src/sounds \
src/settings \
- src/system \
- src/utils \
- src/video \
- src/video/shaders
+
DATA := data \
data/images \
data/fonts \
@@ -68,8 +57,14 @@ INCLUDES := src
#---------------------------------------------------------------------------------
CFLAGS := -std=gnu11 -mrvl -mcpu=750 -meabi -mhard-float -ffast-math \
-O3 -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE)
-CXXFLAGS := -std=gnu++11 -mrvl -mcpu=750 -meabi -mhard-float -ffast-math -D_GNU_SOURCE \
+CXXFLAGS := -std=gnu++11 -mrvl -mcpu=750 -meabi -mhard-float -ffast-math -D_GNU_SOURCE \
-O3 -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE)
+
+ifeq ($(DO_LOGGING), 1)
+ CFLAGS += -D__LOGGING__
+ CXXFLAGS += -D__LOGGING__
+endif
+
ASFLAGS := -mregnames
LDFLAGS := -nostartfiles -Wl,-Map,$(notdir $@).map,-wrap,malloc,-wrap,free,-wrap,memalign,-wrap,calloc,-wrap,realloc,-wrap,malloc_usable_size,-wrap,_malloc_r,-wrap,_free_r,-wrap,_realloc_r,-wrap,_calloc_r,-wrap,_memalign_r,-wrap,_malloc_usable_size_r,-wrap,valloc,-wrap,_valloc_r,-wrap,_pvalloc_r,--gc-sections
@@ -79,7 +74,8 @@ MAKEFLAGS += --no-print-directory
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
-LIBS := -lgcc -lgd -lpng -ljpeg -lz -lfreetype -lmad -lvorbisidec
+LIBS := -lgui -lutils -ldynamiclibs -lcontrollerpatcher -lfreetype -lgd -lpng -ljpeg -lz -lmad -lvorbisidec
+#
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
@@ -106,6 +102,7 @@ export DEPSDIR := $(CURDIR)/$(BUILD)
# automatically build a list of object files for our project
#---------------------------------------------------------------------------------
FILELIST := $(shell bash ./filelist.sh)
+LANGUAGES := $(shell bash ./updatelang.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)))
@@ -133,7 +130,8 @@ export OFILES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(CURDIR)/$(BUILD) -I$(LIBOGC_INC) \
- -I$(PORTLIBS)/include -I$(PORTLIBS)/include/freetype2
+ -I$(PORTLIBS)/include -I$(PORTLIBS)/include/freetype2\
+ -I$(PORTLIBS)/include/libutils -I$(PORTLIBS)/include/libgui
#---------------------------------------------------------------------------------
# build a list of library paths
@@ -147,12 +145,15 @@ export OUTPUT := $(CURDIR)/$(TARGET)
#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
+ #@$(MAKE) --no-print-directory -C $(CURDIR)/libcontrollerpatcher -f $(CURDIR)/libcontrollerpatcher/Makefile
+ #@$(MAKE) --no-print-directory -C $(CURDIR)/libcontrollerpatcher -f $(CURDIR)/libcontrollerpatcher/Makefile install
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
-
+
#---------------------------------------------------------------------------------
clean:
@echo clean ...
- @rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).bin $(BUILD_DBG).elf
+ @$(MAKE) --no-print-directory -C $(CURDIR)/libcontrollerpatcher -f $(CURDIR)/libcontrollerpatcher/Makefile clean
+ @rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).bin $(BUILD_DBG).elf
#---------------------------------------------------------------------------------
else
@@ -172,9 +173,6 @@ $(OUTPUT).elf: $(OFILES)
$(Q)$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS)
$(Q)$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@
-../data/loader.bin:
- $(MAKE) -C ../loader clean
- $(MAKE) -C ../loader
#---------------------------------------------------------------------------------
%.a:
#---------------------------------------------------------------------------------
diff --git a/README.md b/README.md
index 37a3191..efc9ca3 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,14 @@ Do you have an other question? First take a look at:
If you don't find an anwser, please open an issue.
# Building
-In order to build this application, you need the custom liboGC and portlibs modified/created by dimok. You can find them in the "other" folder. Simply put the files in your devkit folder and run the Makefile of HID to VPAD.
+In order to build this application you need serval libs:
+
+- [dynamic_libs](https://github.com/Maschell/dynamic_libs/tree/lib) for access to the functions.
+- [libutils](https://github.com/Maschell/libutils) for common functions.
+- [controller_patcher](https://github.com/Maschell/controller_patcher) to emulate the controllers.
+- [libgui](https://github.com/Maschell/libgui) for the gui elements.
+
+Install them (in this order) according to their README's. Don't forget the dependencies of the libs itself.
# Credits
- A big thanks goes out to dimok for creating the HBL, the dynamic libs and every stuff he made. The "environment" of this app is copied from ddd, turned out to be a "hello world" with useful extra stuff.
diff --git a/filelist.sh b/filelist.sh
index 87cbee1..ee6f75f 100644
--- a/filelist.sh
+++ b/filelist.sh
@@ -3,7 +3,7 @@
# Automatic resource file list generation
# Created by Dimok
-outFile="./src/resources/filelist.h"
+outFile="./src/resources/filelist.cpp"
count_old=$(cat $outFile 2>/dev/null | tr -d '\n\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/')
count=0
@@ -29,29 +29,17 @@ fi
if [ "$count_old" != "$count" ] || [ ! -f $outFile ]
then
-echo "Generating filelist.h for $count files." >&2
+echo "Generating filelist.c for $count files." >&2
cat < $outFile
/****************************************************************************
- * Loadiine resource files.
+ * 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;
+ *****************************************************************************/
+#include
EOF
@@ -64,7 +52,7 @@ do
echo '' >> $outFile
done
-echo 'static RecourceFile RecourceList[] =' >> $outFile
+echo 'static ResourceFile ResourceList[] =' >> $outFile
echo '{' >> $outFile
for i in ${files[@]}
@@ -76,8 +64,7 @@ done
echo -e '\t{NULL, NULL, 0, NULL, 0}' >> $outFile
echo '};' >> $outFile
-
echo '' >> $outFile
-echo '#endif' >> $outFile
-
+echo 'ResourceFile * getResourceList(){ return ResourceList; }' >> $outFile
+echo '' >> $outFile
fi
diff --git a/hidtopad.cbp b/hidtopad.cbp
index d3e944a..1df7e9f 100644
--- a/hidtopad.cbp
+++ b/hidtopad.cbp
@@ -37,48 +37,16 @@
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -89,206 +57,68 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -317,6 +147,8 @@
+
+
@@ -326,62 +158,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/languages/BR_Portuguese.lang b/languages/BR_Portuguese.lang
index a2ab292..3cf0a97 100644
--- a/languages/BR_Portuguese.lang
+++ b/languages/BR_Portuguese.lang
@@ -30,7 +30,7 @@ msgstr "Voltar ao HBL"
msgid "Apply Patches"
msgstr "Aplicar Patches"
-#: src/menu/drc/MainWindowDRC.cpp:48
+#: src/menu/drc/MainWindowDRC.cpp:47
msgid "TCP Server running on: "
msgstr "Servidor TCP funcionando em:"
@@ -39,18 +39,18 @@ msgid "Nothing attached"
msgstr "Nada conectado!"
#: src/menu/drc/MenuElementController.cpp:160
-#: src/menu/tv/TVButtonController.cpp:38
-#: src/menu/tv/TVButtonController.cpp:172
+#: src/menu/tv/TVButtonController.cpp:41
+#: src/menu/tv/TVButtonController.cpp:175
msgid "No device"
msgstr "Sem controle"
#: src/menu/drc/MenuElementController.cpp:169
-#: src/menu/tv/TVButtonController.cpp:181
+#: src/menu/tv/TVButtonController.cpp:184
msgid "Real Pro Controller"
msgstr "Pro Controller Real"
#: src/menu/drc/MenuElementController.cpp:171
-#: src/menu/tv/TVButtonController.cpp:183
+#: src/menu/tv/TVButtonController.cpp:186
msgid "Mouse / Keyboard"
msgstr "Mouse / Teclado"
@@ -71,7 +71,7 @@ msgstr "Ajuda"
msgid "Network Client"
msgstr ""
-#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:33
+#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:34
msgid "Settings"
msgstr ""
@@ -248,34 +248,34 @@ msgstr "É de código aberto e pode encontrar aquí:"
msgid "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:45
-#: src/menu/drc/content/ContentSettings.cpp:50
-msgid "Language"
-msgstr ""
-
#: src/menu/drc/content/ContentSettings.cpp:46
#: src/menu/drc/content/ContentSettings.cpp:51
-msgid "Rumble"
+msgid "Language"
msgstr ""
#: src/menu/drc/content/ContentSettings.cpp:47
#: src/menu/drc/content/ContentSettings.cpp:52
-msgid "Music"
+msgid "Rumble"
msgstr ""
#: src/menu/drc/content/ContentSettings.cpp:48
#: src/menu/drc/content/ContentSettings.cpp:53
+msgid "Music"
+msgstr ""
+
+#: src/menu/drc/content/ContentSettings.cpp:49
+#: src/menu/drc/content/ContentSettings.cpp:54
msgid "Network Controller"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:74
+#: src/menu/drc/content/ContentSettings.cpp:75
msgid ""
msgstr ""
-#: src/menu/tv/TVControllerBanner.cpp:41
+#: src/menu/tv/TVControllerBanner.cpp:40
msgid "Press to return to HBL"
msgstr "Aperte para voltar ao HBL."
-#: src/menu/tv/TVControllerBanner.cpp:44
+#: src/menu/tv/TVControllerBanner.cpp:43
msgid "Press to apply patches"
msgstr "Aperte para aplicar patches"
diff --git a/languages/english.lang b/languages/english.lang
index 0b48080..dd5fc52 100644
--- a/languages/english.lang
+++ b/languages/english.lang
@@ -29,7 +29,7 @@ msgstr ""
msgid "Apply Patches"
msgstr ""
-#: src/menu/drc/MainWindowDRC.cpp:48
+#: src/menu/drc/MainWindowDRC.cpp:47
msgid "TCP Server running on: "
msgstr ""
@@ -38,18 +38,18 @@ msgid "Nothing attached"
msgstr ""
#: src/menu/drc/MenuElementController.cpp:160
-#: src/menu/tv/TVButtonController.cpp:38
-#: src/menu/tv/TVButtonController.cpp:172
+#: src/menu/tv/TVButtonController.cpp:41
+#: src/menu/tv/TVButtonController.cpp:175
msgid "No device"
msgstr ""
#: src/menu/drc/MenuElementController.cpp:169
-#: src/menu/tv/TVButtonController.cpp:181
+#: src/menu/tv/TVButtonController.cpp:184
msgid "Real Pro Controller"
msgstr ""
#: src/menu/drc/MenuElementController.cpp:171
-#: src/menu/tv/TVButtonController.cpp:183
+#: src/menu/tv/TVButtonController.cpp:186
msgid "Mouse / Keyboard"
msgstr ""
@@ -70,7 +70,7 @@ msgstr ""
msgid "Network Client"
msgstr ""
-#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:33
+#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:34
msgid "Settings"
msgstr ""
@@ -246,34 +246,34 @@ msgstr ""
msgid "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:45
-#: src/menu/drc/content/ContentSettings.cpp:50
-msgid "Language"
-msgstr ""
-
#: src/menu/drc/content/ContentSettings.cpp:46
#: src/menu/drc/content/ContentSettings.cpp:51
-msgid "Rumble"
+msgid "Language"
msgstr ""
#: src/menu/drc/content/ContentSettings.cpp:47
#: src/menu/drc/content/ContentSettings.cpp:52
-msgid "Music"
+msgid "Rumble"
msgstr ""
#: src/menu/drc/content/ContentSettings.cpp:48
#: src/menu/drc/content/ContentSettings.cpp:53
+msgid "Music"
+msgstr ""
+
+#: src/menu/drc/content/ContentSettings.cpp:49
+#: src/menu/drc/content/ContentSettings.cpp:54
msgid "Network Controller"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:74
+#: src/menu/drc/content/ContentSettings.cpp:75
msgid ""
msgstr ""
-#: src/menu/tv/TVControllerBanner.cpp:41
+#: src/menu/tv/TVControllerBanner.cpp:40
msgid "Press to return to HBL"
msgstr ""
-#: src/menu/tv/TVControllerBanner.cpp:44
+#: src/menu/tv/TVControllerBanner.cpp:43
msgid "Press to apply patches"
msgstr ""
diff --git a/languages/french.lang b/languages/french.lang
index 92ea039..3e79fa3 100644
--- a/languages/french.lang
+++ b/languages/french.lang
@@ -29,7 +29,7 @@ msgstr "Retour au HBL "
msgid "Apply Patches"
msgstr "Appliquer patches"
-#: src/menu/drc/MainWindowDRC.cpp:48
+#: src/menu/drc/MainWindowDRC.cpp:47
msgid "TCP Server running on: "
msgstr "Serveur TCP actif sur: "
@@ -38,18 +38,18 @@ msgid "Nothing attached"
msgstr "Rien de connecté"
#: src/menu/drc/MenuElementController.cpp:160
-#: src/menu/tv/TVButtonController.cpp:38
-#: src/menu/tv/TVButtonController.cpp:172
+#: src/menu/tv/TVButtonController.cpp:41
+#: src/menu/tv/TVButtonController.cpp:175
msgid "No device"
msgstr "Aucun périphérique"
#: src/menu/drc/MenuElementController.cpp:169
-#: src/menu/tv/TVButtonController.cpp:181
+#: src/menu/tv/TVButtonController.cpp:184
msgid "Real Pro Controller"
msgstr "Pro Controller réel"
#: src/menu/drc/MenuElementController.cpp:171
-#: src/menu/tv/TVButtonController.cpp:183
+#: src/menu/tv/TVButtonController.cpp:186
msgid "Mouse / Keyboard"
msgstr "Souris / Clavier"
@@ -70,7 +70,7 @@ msgstr "Aide"
msgid "Network Client"
msgstr "Client réseau"
-#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:33
+#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:34
msgid "Settings"
msgstr "Paramètres"
@@ -247,34 +247,34 @@ msgstr "Il est Open source et peut être trouvé ici: "
msgid "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
msgstr "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
-#: src/menu/drc/content/ContentSettings.cpp:45
-#: src/menu/drc/content/ContentSettings.cpp:50
+#: src/menu/drc/content/ContentSettings.cpp:46
+#: src/menu/drc/content/ContentSettings.cpp:51
msgid "Language"
msgstr "Langue"
-#: src/menu/drc/content/ContentSettings.cpp:46
-#: src/menu/drc/content/ContentSettings.cpp:51
+#: src/menu/drc/content/ContentSettings.cpp:47
+#: src/menu/drc/content/ContentSettings.cpp:52
msgid "Rumble"
msgstr "Vibration"
-#: src/menu/drc/content/ContentSettings.cpp:47
-#: src/menu/drc/content/ContentSettings.cpp:52
+#: src/menu/drc/content/ContentSettings.cpp:48
+#: src/menu/drc/content/ContentSettings.cpp:53
msgid "Music"
msgstr "Musique"
-#: src/menu/drc/content/ContentSettings.cpp:48
-#: src/menu/drc/content/ContentSettings.cpp:53
+#: src/menu/drc/content/ContentSettings.cpp:49
+#: src/menu/drc/content/ContentSettings.cpp:54
msgid "Network Controller"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:74
+#: src/menu/drc/content/ContentSettings.cpp:75
msgid ""
msgstr ""
-#: src/menu/tv/TVControllerBanner.cpp:41
+#: src/menu/tv/TVControllerBanner.cpp:40
msgid "Press to return to HBL"
msgstr "Appuyez sur pour revenir au HBL"
-#: src/menu/tv/TVControllerBanner.cpp:44
+#: src/menu/tv/TVControllerBanner.cpp:43
msgid "Press to apply patches"
msgstr "Appuyez sur pour appliquer les patches"
diff --git a/languages/german.lang b/languages/german.lang
index 0b5aaf4..dd75e08 100644
--- a/languages/german.lang
+++ b/languages/german.lang
@@ -30,7 +30,7 @@ msgstr "Zurück zum HBL"
msgid "Apply Patches"
msgstr "System Menu"
-#: src/menu/drc/MainWindowDRC.cpp:48
+#: src/menu/drc/MainWindowDRC.cpp:47
msgid "TCP Server running on: "
msgstr "TCP Server erreichbar:"
@@ -39,18 +39,18 @@ msgid "Nothing attached"
msgstr "Nichts verbunden"
#: src/menu/drc/MenuElementController.cpp:160
-#: src/menu/tv/TVButtonController.cpp:38
-#: src/menu/tv/TVButtonController.cpp:172
+#: src/menu/tv/TVButtonController.cpp:41
+#: src/menu/tv/TVButtonController.cpp:175
msgid "No device"
msgstr "Kein Controller"
#: src/menu/drc/MenuElementController.cpp:169
-#: src/menu/tv/TVButtonController.cpp:181
+#: src/menu/tv/TVButtonController.cpp:184
msgid "Real Pro Controller"
msgstr "Echter Pro Controller"
#: src/menu/drc/MenuElementController.cpp:171
-#: src/menu/tv/TVButtonController.cpp:183
+#: src/menu/tv/TVButtonController.cpp:186
msgid "Mouse / Keyboard"
msgstr "Maus / Tastatur"
@@ -71,7 +71,7 @@ msgstr "Hilfe"
msgid "Network Client"
msgstr "Network Client"
-#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:33
+#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:34
msgid "Settings"
msgstr "Einstellungen"
@@ -248,34 +248,34 @@ msgstr "Es ist Open-Source und kann hier geladen werden:"
msgid "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:45
-#: src/menu/drc/content/ContentSettings.cpp:50
+#: src/menu/drc/content/ContentSettings.cpp:46
+#: src/menu/drc/content/ContentSettings.cpp:51
msgid "Language"
msgstr "Sprache"
-#: src/menu/drc/content/ContentSettings.cpp:46
-#: src/menu/drc/content/ContentSettings.cpp:51
+#: src/menu/drc/content/ContentSettings.cpp:47
+#: src/menu/drc/content/ContentSettings.cpp:52
msgid "Rumble"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:47
-#: src/menu/drc/content/ContentSettings.cpp:52
+#: src/menu/drc/content/ContentSettings.cpp:48
+#: src/menu/drc/content/ContentSettings.cpp:53
msgid "Music"
msgstr "Musik"
-#: src/menu/drc/content/ContentSettings.cpp:48
-#: src/menu/drc/content/ContentSettings.cpp:53
+#: src/menu/drc/content/ContentSettings.cpp:49
+#: src/menu/drc/content/ContentSettings.cpp:54
msgid "Network Controller"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:74
+#: src/menu/drc/content/ContentSettings.cpp:75
msgid ""
msgstr ""
-#: src/menu/tv/TVControllerBanner.cpp:41
+#: src/menu/tv/TVControllerBanner.cpp:40
msgid "Press to return to HBL"
msgstr " zurück zum HBL."
-#: src/menu/tv/TVControllerBanner.cpp:44
+#: src/menu/tv/TVControllerBanner.cpp:43
msgid "Press to apply patches"
msgstr " zum starten."
diff --git a/languages/italian.lang b/languages/italian.lang
index 908bcad..3be82db 100644
--- a/languages/italian.lang
+++ b/languages/italian.lang
@@ -29,7 +29,7 @@ msgstr "Torna a HBL "
msgid "Apply Patches"
msgstr "Applica Patch"
-#: src/menu/drc/MainWindowDRC.cpp:48
+#: src/menu/drc/MainWindowDRC.cpp:47
msgid "TCP Server running on: "
msgstr "Server TCP in esec. su: "
@@ -38,18 +38,18 @@ msgid "Nothing attached"
msgstr "Nulla assegnato"
#: src/menu/drc/MenuElementController.cpp:160
-#: src/menu/tv/TVButtonController.cpp:38
-#: src/menu/tv/TVButtonController.cpp:172
+#: src/menu/tv/TVButtonController.cpp:41
+#: src/menu/tv/TVButtonController.cpp:175
msgid "No device"
msgstr "Nessun dispositivo"
#: src/menu/drc/MenuElementController.cpp:169
-#: src/menu/tv/TVButtonController.cpp:181
+#: src/menu/tv/TVButtonController.cpp:184
msgid "Real Pro Controller"
msgstr "Pro Controller reale"
#: src/menu/drc/MenuElementController.cpp:171
-#: src/menu/tv/TVButtonController.cpp:183
+#: src/menu/tv/TVButtonController.cpp:186
msgid "Mouse / Keyboard"
msgstr "Mouse / Tastiera"
@@ -70,7 +70,7 @@ msgstr "Aiuto"
msgid "Network Client"
msgstr "Network Client"
-#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:33
+#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:34
msgid "Settings"
msgstr "Impostazioni"
@@ -247,34 +247,34 @@ msgstr "È open source e puoi trovarlo qui:"
msgid "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
msgstr "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
-#: src/menu/drc/content/ContentSettings.cpp:45
-#: src/menu/drc/content/ContentSettings.cpp:50
+#: src/menu/drc/content/ContentSettings.cpp:46
+#: src/menu/drc/content/ContentSettings.cpp:51
msgid "Language"
msgstr "Lingua"
-#: src/menu/drc/content/ContentSettings.cpp:46
-#: src/menu/drc/content/ContentSettings.cpp:51
+#: src/menu/drc/content/ContentSettings.cpp:47
+#: src/menu/drc/content/ContentSettings.cpp:52
msgid "Rumble"
msgstr "Vibrazione"
-#: src/menu/drc/content/ContentSettings.cpp:47
-#: src/menu/drc/content/ContentSettings.cpp:52
+#: src/menu/drc/content/ContentSettings.cpp:48
+#: src/menu/drc/content/ContentSettings.cpp:53
msgid "Music"
msgstr "Musica"
-#: src/menu/drc/content/ContentSettings.cpp:48
-#: src/menu/drc/content/ContentSettings.cpp:53
+#: src/menu/drc/content/ContentSettings.cpp:49
+#: src/menu/drc/content/ContentSettings.cpp:54
msgid "Network Controller"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:74
+#: src/menu/drc/content/ContentSettings.cpp:75
msgid ""
msgstr ""
-#: src/menu/tv/TVControllerBanner.cpp:41
+#: src/menu/tv/TVControllerBanner.cpp:40
msgid "Press to return to HBL"
msgstr "Premi per tornare a HBL"
-#: src/menu/tv/TVControllerBanner.cpp:44
+#: src/menu/tv/TVControllerBanner.cpp:43
msgid "Press to apply patches"
msgstr "Premi per applicare patch"
diff --git a/languages/spanish.lang b/languages/spanish.lang
index 8c8404d..04540ec 100644
--- a/languages/spanish.lang
+++ b/languages/spanish.lang
@@ -30,7 +30,7 @@ msgstr "Volver al HBL"
msgid "Apply Patches"
msgstr "Aplicar cambios"
-#: src/menu/drc/MainWindowDRC.cpp:48
+#: src/menu/drc/MainWindowDRC.cpp:47
msgid "TCP Server running on: "
msgstr "Servidor TCP funcionando en:"
@@ -39,18 +39,18 @@ msgid "Nothing attached"
msgstr "¡Nada conectado!"
#: src/menu/drc/MenuElementController.cpp:160
-#: src/menu/tv/TVButtonController.cpp:38
-#: src/menu/tv/TVButtonController.cpp:172
+#: src/menu/tv/TVButtonController.cpp:41
+#: src/menu/tv/TVButtonController.cpp:175
msgid "No device"
msgstr "No mando"
#: src/menu/drc/MenuElementController.cpp:169
-#: src/menu/tv/TVButtonController.cpp:181
+#: src/menu/tv/TVButtonController.cpp:184
msgid "Real Pro Controller"
msgstr "Pro Controller real"
#: src/menu/drc/MenuElementController.cpp:171
-#: src/menu/tv/TVButtonController.cpp:183
+#: src/menu/tv/TVButtonController.cpp:186
msgid "Mouse / Keyboard"
msgstr "Ratón / Teclado"
@@ -71,7 +71,7 @@ msgstr "Ayuda"
msgid "Network Client"
msgstr ""
-#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:33
+#: src/menu/drc/MenuListDRC.cpp:42 src/menu/drc/content/ContentSettings.cpp:34
msgid "Settings"
msgstr ""
@@ -248,34 +248,34 @@ msgstr "Es de código abierto y puedes encontrarlo aquí:"
msgid "https://github.com/QuarkTheAwesome/HIDtoVPADNetworkClient"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:45
-#: src/menu/drc/content/ContentSettings.cpp:50
-msgid "Language"
-msgstr ""
-
#: src/menu/drc/content/ContentSettings.cpp:46
#: src/menu/drc/content/ContentSettings.cpp:51
-msgid "Rumble"
+msgid "Language"
msgstr ""
#: src/menu/drc/content/ContentSettings.cpp:47
#: src/menu/drc/content/ContentSettings.cpp:52
-msgid "Music"
+msgid "Rumble"
msgstr ""
#: src/menu/drc/content/ContentSettings.cpp:48
#: src/menu/drc/content/ContentSettings.cpp:53
+msgid "Music"
+msgstr ""
+
+#: src/menu/drc/content/ContentSettings.cpp:49
+#: src/menu/drc/content/ContentSettings.cpp:54
msgid "Network Controller"
msgstr ""
-#: src/menu/drc/content/ContentSettings.cpp:74
+#: src/menu/drc/content/ContentSettings.cpp:75
msgid ""
msgstr ""
-#: src/menu/tv/TVControllerBanner.cpp:41
+#: src/menu/tv/TVControllerBanner.cpp:40
msgid "Press to return to HBL"
msgstr " Pulsa para volver al HBL."
-#: src/menu/tv/TVControllerBanner.cpp:44
+#: src/menu/tv/TVControllerBanner.cpp:43
msgid "Press to apply patches"
msgstr "Pulsa para aplicar cambios"
diff --git a/other/libogc.7z b/other/libogc.7z
deleted file mode 100644
index 9fb82a9..0000000
Binary files a/other/libogc.7z and /dev/null differ
diff --git a/other/portlibs.7z b/other/portlibs.7z
deleted file mode 100644
index c612d1a..0000000
Binary files a/other/portlibs.7z and /dev/null differ
diff --git a/src/Application.cpp b/src/Application.cpp
index 16a1cf9..0ea3345 100644
--- a/src/Application.cpp
+++ b/src/Application.cpp
@@ -17,13 +17,14 @@
****************************************************************************/
#include "Application.h"
#include "common/common.h"
-#include "dynamic_libs/os_functions.h"
-#include "gui/FreeTypeGX.h"
-#include "gui/VPadController.h"
-#include "gui/WPadController.h"
-#include "resources/Resources.h"
-#include "sounds/SoundHandler.hpp"
-#include "utils/logger.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
#include "settings/CSettings.h"
Application *Application::applicationInstance = NULL;
diff --git a/src/Application.h b/src/Application.h
index 1f4e565..347c1b6 100644
--- a/src/Application.h
+++ b/src/Application.h
@@ -18,9 +18,10 @@
#ifndef _APPLICATION_H
#define _APPLICATION_H
+#include