Skip to content

Commit

Permalink
Fix quick starting into System Settings as regular title
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed May 5, 2024
1 parent 083998f commit d8b2f36
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions source/QuickStartUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit d8b2f36

Please sign in to comment.