Fix loading the correct account when selecting the Wii U Menu or an applet in quick start menu

This commit is contained in:
Maschell 2023-03-31 14:37:34 +02:00
parent 873521f884
commit 1bff430b7d

View File

@ -105,6 +105,8 @@ bool getQuickBoot() {
// load app launch param // load app launch param
CCRSysCaffeineGetAppLaunchParam(&data); CCRSysCaffeineGetAppLaunchParam(&data);
loadConsoleAccount(data.uuid);
// get launch info for id // get launch info for id
nn::sl::LaunchInfo info; nn::sl::LaunchInfo info;
auto result = database->GetLaunchInfoById(&info, data.titleId); auto result = database->GetLaunchInfoById(&info, data.titleId);
@ -215,7 +217,6 @@ bool getQuickBoot() {
auto err = MCP_GetTitleInfo(handle, info.titleId, &titleInfo); auto err = MCP_GetTitleInfo(handle, info.titleId, &titleInfo);
MCP_Close(handle); MCP_Close(handle);
if (err == 0) { if (err == 0) {
loadConsoleAccount(data.uuid);
ACPAssignTitlePatch(&titleInfo); ACPAssignTitlePatch(&titleInfo);
_SYSLaunchTitleWithStdArgsInNoSplash(info.titleId, nullptr); _SYSLaunchTitleWithStdArgsInNoSplash(info.titleId, nullptr);
return true; return true;