Closed iamcco closed 6 months ago
call within tsl::hlp::doWithSmSession
still doesn't help.
You should provide error codes as they may be helpful.
You should provide error codes as they may be helpful.
@masagrator error code return from accountGetPreselectedUser
is 0x1159
and from pselShowUserSelector
is 0xe401
0x1159 means that account service is not initialized.
I see in libnx source that is possible to get success return from accountInitialize, but in fact it can fail. This would require debugging what exactly fails.
That won't work as the "preselected user" is the user that launched your process. https://github.com/switchbrew/libnx/blob/master/nx/source/services/acc.c#L200 This is determined by asking applet. Tesla overlays aren't applets and not launched by a specific user. I think you are trying to do something else but I don't know if you are able to do it in this context.
That won't work as the "preselected user" is the user that launched your process. https://github.com/switchbrew/libnx/blob/master/nx/source/services/acc.c#L200 This is determined by asking applet. Tesla overlays aren't applets and not launched by a specific user. I think you are trying to do something else but I don't know if you are able to do it in this context.
Thanks for pointing that out, make more sense now.
accountGetPreselectedUser
andpselShowUserSelector
all failed.