Compare commits

...

2 Commits

Author SHA1 Message Date
Maschell 67dfdd1fc8 Rename getQuickBoot to launchQuickStartTitle 2024-04-26 10:35:50 +02:00
Maschell 4cc08d82e2 Make sure to librpxloader before checking for quick start 2024-04-26 10:35:50 +02:00
3 changed files with 9 additions and 9 deletions

View File

@ -112,7 +112,7 @@ private:
FSCmdBlock mCmdBlock{};
};
bool getQuickBoot() {
bool launchQuickStartTitle() {
// Waits until the quick start menu has been closed. TODO: abort this checks after a given time?
auto bootCheck = CCRSysCaffeineBootCheck();
if (bootCheck == 0) {

View File

@ -1,3 +1,3 @@
#pragma once
bool getQuickBoot();
bool launchQuickStartTitle();

View File

@ -42,7 +42,13 @@ int32_t main(int32_t argc, char **argv) {
initExternalStorage();
if (getQuickBoot()) {
// 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 (launchQuickStartTitle()) {
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();