diff --git a/loader/Makefile b/loader/Makefile index 22d37d7..d45369d 100644 --- a/loader/Makefile +++ b/loader/Makefile @@ -35,6 +35,7 @@ TARGET := wiiupluginloader BUILD := build BUILD_DBG := $(TARGET)_dbg SOURCES := src/common \ + src/custom/gui \ src/libelf \ src/menu/content \ src/menu \ diff --git a/loader/data/images/gameSettingsButton.png b/loader/data/images/gameSettingsButton.png new file mode 100644 index 0000000..d6b4a6d Binary files /dev/null and b/loader/data/images/gameSettingsButton.png differ diff --git a/loader/data/images/gameSettingsButtonEx.png b/loader/data/images/gameSettingsButtonEx.png new file mode 100644 index 0000000..288ffae Binary files /dev/null and b/loader/data/images/gameSettingsButtonEx.png differ diff --git a/loader/data/images/gameSettingsButtonExHighlighted.png b/loader/data/images/gameSettingsButtonExHighlighted.png new file mode 100644 index 0000000..f088e54 Binary files /dev/null and b/loader/data/images/gameSettingsButtonExHighlighted.png differ diff --git a/loader/data/images/gameSettingsButtonExSelected.png b/loader/data/images/gameSettingsButtonExSelected.png new file mode 100644 index 0000000..f088e54 Binary files /dev/null and b/loader/data/images/gameSettingsButtonExSelected.png differ diff --git a/loader/data/images/gameSettingsButtonSelected.png b/loader/data/images/gameSettingsButtonSelected.png new file mode 100644 index 0000000..e5c3d89 Binary files /dev/null and b/loader/data/images/gameSettingsButtonSelected.png differ diff --git a/loader/data/images/switchIconBase.png b/loader/data/images/switchIconBase.png new file mode 100644 index 0000000..12e860e Binary files /dev/null and b/loader/data/images/switchIconBase.png differ diff --git a/loader/data/images/switchIconBaseHighlighted.png b/loader/data/images/switchIconBaseHighlighted.png new file mode 100644 index 0000000..d22fccd Binary files /dev/null and b/loader/data/images/switchIconBaseHighlighted.png differ diff --git a/loader/data/images/switchIconOff.png b/loader/data/images/switchIconOff.png new file mode 100644 index 0000000..7ec097f Binary files /dev/null and b/loader/data/images/switchIconOff.png differ diff --git a/loader/data/images/switchIconOn.png b/loader/data/images/switchIconOn.png new file mode 100644 index 0000000..17e6552 Binary files /dev/null and b/loader/data/images/switchIconOn.png differ diff --git a/loader/data/sounds/settings_click_2.mp3 b/loader/data/sounds/settings_click_2.mp3 new file mode 100644 index 0000000..92f1e74 Binary files /dev/null and b/loader/data/sounds/settings_click_2.mp3 differ diff --git a/loader/languages/english.lang b/loader/languages/english.lang index ed9509b..f462b11 100644 --- a/loader/languages/english.lang +++ b/loader/languages/english.lang @@ -1,3 +1,6 @@ +msgid "Language" +msgstr "" + # English translations for Wii U Plugin System loader # This file is distributed under the same license as the PACKAGE package. msgid "" @@ -13,14 +16,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: src/menu/content/ContentHome.cpp:20 +#: src/menu/content/ContentHome.cpp:23 msgid "Welcome to the Wii U plugin loader" msgstr "" -#: src/menu/content/ContentHome.cpp:29 +#: src/menu/content/ContentHome.cpp:32 msgid "Exit to HBL " msgstr "" -#: src/menu/content/ContentHome.cpp:32 +#: src/menu/content/ContentHome.cpp:35 msgid "Apply Patches" msgstr "" diff --git a/loader/src/Application.cpp b/loader/src/Application.cpp index 5b5737b..225ad21 100644 --- a/loader/src/Application.cpp +++ b/loader/src/Application.cpp @@ -183,6 +183,14 @@ void Application::executeThread(void) { if(controller[i]->data.buttons_d & VPAD_BUTTON_PLUS) { exitCode = APPLICATION_CLOSE_APPLY; + if(linkPluginsCallback != NULL) { + bool result = linkPluginsCallback(); + if(!result) { + // On linking errors return to the HBL. + #warning TODO: proper error handling when linking fails. + exitCode = APPLICATION_CLOSE_MIIMAKER; + } + } exitApplication = true; } diff --git a/loader/src/Application.h b/loader/src/Application.h index 6facf6c..0d5f33d 100644 --- a/loader/src/Application.h +++ b/loader/src/Application.h @@ -19,6 +19,7 @@ #define _APPLICATION_H #include "menu/MainWindow.h" +#include #include