Load values from SD only once at the beginning.

This commit is contained in:
Maschell 2019-02-07 17:03:43 +01:00
parent e6f246b947
commit 9ed45f82de

View File

@ -149,7 +149,6 @@ extern "C" int32_t Menu_Main(int32_t argc, char **argv) {
if(!isInMiiMakerHBL()) { if(!isInMiiMakerHBL()) {
DEBUG_FUNCTION_LINE("Apply patches.\n"); DEBUG_FUNCTION_LINE("Apply patches.\n");
ApplyPatchesAndCallHookStartingApp(); ApplyPatchesAndCallHookStartingApp();
ConfigUtils::loadConfigFromSD();
if(MemoryMapping::isMemoryMapped()) { if(MemoryMapping::isMemoryMapped()) {
DEBUG_FUNCTION_LINE("Mapping was already done. Running %016llX\n",gGameTitleID); 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_KERNEL);
CallHook(WUPS_LOADER_HOOK_INIT_FS); CallHook(WUPS_LOADER_HOOK_INIT_FS);
CallHook(WUPS_LOADER_HOOK_INIT_OVERLAY); CallHook(WUPS_LOADER_HOOK_INIT_OVERLAY);
ConfigUtils::loadConfigFromSD();
CallHook(WUPS_LOADER_HOOK_INIT_PLUGIN); CallHook(WUPS_LOADER_HOOK_INIT_PLUGIN);
DEBUG_FUNCTION_LINE("Loading the system menu.\n"); DEBUG_FUNCTION_LINE("Loading the system menu.\n");
DeInit(); DeInit();