From 3e3b66b5816c3ffcd96f334e3e702d5f286ef5bd Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 15 Jul 2018 15:58:23 +0200 Subject: [PATCH] Add the path to the plugins to the common/common.h --- loader/src/common/common.h | 1 + loader/src/menu/content/ContentHome.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/loader/src/common/common.h b/loader/src/common/common.h index 58829f8..2e8d703 100644 --- a/loader/src/common/common.h +++ b/loader/src/common/common.h @@ -29,6 +29,7 @@ extern "C" { #define DEFAULT_LANG_PATH DEFAULT_WUPSLOADER_PATH "/languages" #define LANGUAGE_FILE_EXT ".lang" +#define WUPS_PLUGIN_PATH SD_PATH WIIU_PATH "/plugins" #define WUPS_TEMP_PLUGIN_PATH SD_PATH WIIU_PATH "/plugins/temp" #define WUPS_TEMP_PLUGIN_FILE WUPS_TEMP_PLUGIN_PATH "/temp.mod" diff --git a/loader/src/menu/content/ContentHome.cpp b/loader/src/menu/content/ContentHome.cpp index 460c788..bd8502f 100644 --- a/loader/src/menu/content/ContentHome.cpp +++ b/loader/src/menu/content/ContentHome.cpp @@ -14,6 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . ****************************************************************************/ +#include "common/common.h" #include "ContentHome.h" #include "plugin/PluginLoader.h" #include "custom/gui/DefaultGuiSwitch.h" @@ -89,7 +90,7 @@ ContentHome::ContentHome():ContentTemplate() append(&DPADButtons); PluginLoader * pluginLoader = PluginLoader::getInstance(); - std::vector pluginList = pluginLoader->getPluginInformation("sd:/wiiu/plugins/"); + std::vector pluginList = pluginLoader->getPluginInformation(WUPS_PLUGIN_PATH); std::vector pluginListLoaded = pluginLoader->getPluginsLoadedInMemory(); pluginsFrame.setAlignment(ALIGN_TOP_CENTER);