From d8b2f36cf0f04bf571299b023d7ac6d10d8593a0 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 5 May 2024 02:43:10 +0200 Subject: [PATCH] Fix quick starting into System Settings as regular title --- source/QuickStartUtils.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/source/QuickStartUtils.cpp b/source/QuickStartUtils.cpp index 90a1a5f..2f2e4be 100644 --- a/source/QuickStartUtils.cpp +++ b/source/QuickStartUtils.cpp @@ -148,6 +148,14 @@ bool launchQuickStartTitle() { // load app launch param CCRSysCaffeineGetAppLaunchParam(&data); + if (data.titleId == 1) { // This id is hardcoded into the nn_sl.rpl + DEBUG_FUNCTION_LINE("Launch Quick Start Settings"); + SysAppSettingsArgs args{}; + args.jumpTo = 103; // quick start settings + _SYSLaunchSettings(&args); + return true; + } + loadConsoleAccount(data.uuid); auto result = launchInfoDatabase.GetLaunchInfoById(&info, data.titleId); @@ -158,6 +166,7 @@ bool launchQuickStartTitle() { DEBUG_FUNCTION_LINE("GetLaunchInfoById failed."); return false; } + DEBUG_FUNCTION_LINE_ERR("%s", info.parameter); if ((info.titleId & TITLE_ID_HOMEBREW_MASK) == TITLE_ID_HOMEBREW_MASK) { std::string homebrewPath = info.parameter; @@ -180,10 +189,8 @@ bool launchQuickStartTitle() { if (info.titleId == 0x0005001010047000L || info.titleId == 0x0005001010047100L || info.titleId == 0x0005001010047200L) { - DEBUG_FUNCTION_LINE("Launch Quick Start Settings"); - SysAppSettingsArgs args{}; - args.jumpTo = 103; - _SYSLaunchSettings(&args); + DEBUG_FUNCTION_LINE("Launch System Settings"); + _SYSLaunchSettings(nullptr); return true; }