mirror of
https://github.com/wiiu-env/PayloadFromRPX.git
synced 2024-11-27 23:54:13 +01:00
Display user selection if no default user is set and we load without hacks
This commit is contained in:
parent
552b56fe1e
commit
e267794110
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
#include <coreinit/foreground.h>
|
#include <coreinit/foreground.h>
|
||||||
|
|
||||||
|
#include <nn/act/client_cpp.h>
|
||||||
|
|
||||||
#include <proc_ui/procui.h>
|
#include <proc_ui/procui.h>
|
||||||
#include <coreinit/thread.h>
|
#include <coreinit/thread.h>
|
||||||
#include <coreinit/screen.h>
|
#include <coreinit/screen.h>
|
||||||
@ -43,6 +45,8 @@ bool CheckRunning() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" void _SYSLaunchMenuWithCheckingAccount(nn::act::SlotNo slot);
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
WHBLogUdpInit();
|
WHBLogUdpInit();
|
||||||
|
|
||||||
@ -108,7 +112,19 @@ int main(int argc, char **argv) {
|
|||||||
DEBUG_FUNCTION_LINE("Forcing start of title: %016llX", sysmenuIdUll);
|
DEBUG_FUNCTION_LINE("Forcing start of title: %016llX", sysmenuIdUll);
|
||||||
|
|
||||||
ExecuteIOSExploit();
|
ExecuteIOSExploit();
|
||||||
SYSLaunchMenu();
|
|
||||||
|
nn::act::Initialize();
|
||||||
|
nn::act::SlotNo slot = nn::act::GetSlotNo();
|
||||||
|
nn::act::SlotNo defaultSlot = nn::act::GetDefaultAccount();
|
||||||
|
nn::act::Finalize();
|
||||||
|
|
||||||
|
if (defaultSlot) {
|
||||||
|
//normal menu boot
|
||||||
|
SYSLaunchMenu();
|
||||||
|
} else {
|
||||||
|
//show mii select
|
||||||
|
_SYSLaunchMenuWithCheckingAccount(slot);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (CheckRunning()) {
|
while (CheckRunning()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user