From 4cc08d82e2f40e5f790f72b6fcf16393a4b70e08 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 26 Apr 2024 10:31:18 +0200 Subject: [PATCH] Make sure to librpxloader before checking for quick start --- source/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 91ae2fc..3248f8a 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -42,6 +42,12 @@ int32_t main(int32_t argc, char **argv) { initExternalStorage(); + // Use librpxloader. + RPXLoaderStatus error3; + if ((error3 = RPXLoader_InitLibrary()) != RPX_LOADER_RESULT_SUCCESS) { + DEBUG_FUNCTION_LINE_ERR("AutobootModule: Failed to init RPXLoader. This can be ignored when not running Aroma. Error %s [%d]", RPXLoader_GetStatusStr(error3), error3); + } + if (getQuickBoot()) { deinitLogging(); return 0; @@ -51,12 +57,6 @@ int32_t main(int32_t argc, char **argv) { OSFatal("AutobootModule: Mocha_InitLibrary failed"); } - // Use librpxloader. - RPXLoaderStatus error3; - if ((error3 = RPXLoader_InitLibrary()) != RPX_LOADER_RESULT_SUCCESS) { - DEBUG_FUNCTION_LINE("AutobootModule: Failed to init RPXLoader. This can be ignored when not running Aroma. Error %s [%d]", RPXLoader_GetStatusStr(error3), error3); - } - InputUtils::InputData buttons = InputUtils::getControllerInput(); FSAInit();