mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-19 09:49:21 +01:00
*Now if no HDD is found at startup you will be asked if you want to retry 30secs with the cIOS of your choice or return to WiiMenu.
This commit is contained in:
parent
d3d8b79873
commit
8e3519372a
@ -4339,8 +4339,31 @@ static int MenuCheck()
|
||||
ret2 = WBFS_Init(WBFS_DEVICE_USB);
|
||||
if (ret2 < 0)
|
||||
{
|
||||
//shutdown SD
|
||||
fatUnmount("SD");
|
||||
__io_wiisd.shutdown();
|
||||
//initialize WiiMote for Prompt
|
||||
Wpad_Init();
|
||||
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
|
||||
WPAD_SetVRes(WPAD_CHAN_ALL, screenwidth, screenheight);
|
||||
|
||||
ret2 = WindowPrompt("No USB Device found.",
|
||||
"Do you want to retry for 30secs?",
|
||||
"Try cIOS249", "Try cIOS222",
|
||||
"Back to WiiMenu", 0);
|
||||
|
||||
if(ret2 == 1) {
|
||||
Settings.cios = ios249;
|
||||
} else if(ret2 == 2) {
|
||||
Settings.cios = ios222;
|
||||
} else {
|
||||
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
|
||||
}
|
||||
//shutdown WiiMote before IOS Reload
|
||||
WPAD_Flush(0);
|
||||
WPAD_Disconnect(0);
|
||||
WPAD_Shutdown();
|
||||
|
||||
ret2 = DiscWait("No USB Device:", "Waiting for USB Device", 0, 0, 1);
|
||||
PAD_Init();
|
||||
Wpad_Init();
|
||||
|
Loading…
Reference in New Issue
Block a user