From 9ed45f82de157f1b1ee8cd4788302a79aed5a8ba Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 7 Feb 2019 17:03:43 +0100 Subject: [PATCH] Load values from SD only once at the beginning. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 8d1c4e6..0913a9c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -149,7 +149,6 @@ extern "C" int32_t Menu_Main(int32_t argc, char **argv) { if(!isInMiiMakerHBL()) { DEBUG_FUNCTION_LINE("Apply patches.\n"); ApplyPatchesAndCallHookStartingApp(); - ConfigUtils::loadConfigFromSD(); if(MemoryMapping::isMemoryMapped()) { DEBUG_FUNCTION_LINE("Mapping was already done. Running %016llX\n",gGameTitleID); @@ -172,6 +171,7 @@ extern "C" int32_t Menu_Main(int32_t argc, char **argv) { CallHook(WUPS_LOADER_HOOK_INIT_KERNEL); CallHook(WUPS_LOADER_HOOK_INIT_FS); CallHook(WUPS_LOADER_HOOK_INIT_OVERLAY); + ConfigUtils::loadConfigFromSD(); CallHook(WUPS_LOADER_HOOK_INIT_PLUGIN); DEBUG_FUNCTION_LINE("Loading the system menu.\n"); DeInit();