mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-16 23:29:23 +01:00
Display user selection if no default user is set.
This commit is contained in:
parent
4f208ba8a6
commit
6529ea36f4
@ -229,6 +229,10 @@ IMPORT(ACConnect);
|
|||||||
IMPORT(ACClose);
|
IMPORT(ACClose);
|
||||||
IMPORT(ACGetAssignedAddress);
|
IMPORT(ACGetAssignedAddress);
|
||||||
IMPORT(ACGetAssignedSubnet);
|
IMPORT(ACGetAssignedSubnet);
|
||||||
|
IMPORT(Initialize__Q2_2nn3actFv);
|
||||||
|
IMPORT(GetSlotNo__Q2_2nn3actFv);
|
||||||
|
IMPORT(GetDefaultAccount__Q2_2nn3actFv);
|
||||||
|
IMPORT(Finalize__Q2_2nn3actFv);
|
||||||
IMPORT_END();
|
IMPORT_END();
|
||||||
|
|
||||||
/* proc_ui */
|
/* proc_ui */
|
||||||
@ -266,6 +270,7 @@ IMPORT_BEGIN(sysapp);
|
|||||||
IMPORT(SYSRelaunchTitle);
|
IMPORT(SYSRelaunchTitle);
|
||||||
IMPORT(_SYSGetSystemApplicationTitleId);
|
IMPORT(_SYSGetSystemApplicationTitleId);
|
||||||
IMPORT(SYSLaunchMenu);
|
IMPORT(SYSLaunchMenu);
|
||||||
|
IMPORT(_SYSLaunchMenuWithCheckingAccount);
|
||||||
|
|
||||||
IMPORT_END();
|
IMPORT_END();
|
||||||
|
|
||||||
|
14
src/main.cpp
14
src/main.cpp
@ -24,6 +24,7 @@
|
|||||||
#include <proc_ui/procui.h>
|
#include <proc_ui/procui.h>
|
||||||
#include <coreinit/foreground.h>
|
#include <coreinit/foreground.h>
|
||||||
#include <coreinit/screen.h>
|
#include <coreinit/screen.h>
|
||||||
|
#include <nn/act/client_cpp.h>
|
||||||
|
|
||||||
#include "ElfUtils.h"
|
#include "ElfUtils.h"
|
||||||
#include "module/ModuleData.h"
|
#include "module/ModuleData.h"
|
||||||
@ -64,6 +65,8 @@ bool CheckRunning() {
|
|||||||
extern "C" void __init_wut();
|
extern "C" void __init_wut();
|
||||||
extern "C" void __fini_wut();
|
extern "C" void __fini_wut();
|
||||||
|
|
||||||
|
extern "C" void _SYSLaunchMenuWithCheckingAccount(nn::act::SlotNo slot);
|
||||||
|
|
||||||
extern "C" int _start(int argc, char **argv) {
|
extern "C" int _start(int argc, char **argv) {
|
||||||
doKernelSetup();
|
doKernelSetup();
|
||||||
InitFunctionPointers();
|
InitFunctionPointers();
|
||||||
@ -121,7 +124,18 @@ extern "C" int _start(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (doProcUI) {
|
if (doProcUI) {
|
||||||
|
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();
|
SYSLaunchMenu();
|
||||||
|
} else {
|
||||||
|
//show mii select
|
||||||
|
_SYSLaunchMenuWithCheckingAccount(slot);
|
||||||
|
}
|
||||||
ProcUIInit(OSSavesDone_ReadyToRelease);
|
ProcUIInit(OSSavesDone_ReadyToRelease);
|
||||||
DEBUG_FUNCTION_LINE("In ProcUI loop");
|
DEBUG_FUNCTION_LINE("In ProcUI loop");
|
||||||
while (CheckRunning()) {
|
while (CheckRunning()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user