// Prevent autobooting if B is pressed
int i = 0;
while((ncfg->Config & NIN_CFG_AUTO_BOOT) && (i < 500000)) // wait for wiimote re-sync
{
if (i == 0) {
PrintInfo();
if (which_bg == BG_NONE)
{
PrintFormat(DEFAULT_SIZE, BLACK, MENU_POS_X + 320 - 90, MENU_POS_Y + 20*10, "B: Cancel Autoboot");
GRRLIB_Render();
ClearScreen();
}
else if (which_bg == BG_LEGACY)
{
PrintFormat(DEFAULT_SIZE, WHITE, MENU_POS_X + 320 - 90, MENU_POS_Y + 20*10, "B: Cancel Autoboot");
GRRLIB_Render();
ClearScreen();
}
else if (which_bg == BG_BLACK)
{
GRRLIB_Render();
ClearScreen();
}
else
{
PrintFormat(DEFAULT_SIZE, BLACK, 230, MENU_POS_Y + 406, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, BLACK, 230, MENU_POS_Y + 410, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, BLACK, 228, MENU_POS_Y + 408, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, BLACK, 232, MENU_POS_Y + 408, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, BLACK, 228, MENU_POS_Y + 406, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, BLACK, 232, MENU_POS_Y + 410, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, BLACK, 228, MENU_POS_Y + 410, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, BLACK, 232, MENU_POS_Y + 406, "B: Cancel Autoboot");
PrintFormat(DEFAULT_SIZE, WHITE, 230, MENU_POS_Y + 408, "B: Cancel Autoboot");
GRRLIB_Render();
ClearScreen();
}
}
FPAD_Update();
if (FPAD_Cancel(0)) {
ncfg->Config &= ~NIN_CFG_AUTO_BOOT;
FadeOut();
BackTheme();
break;
}
i++;
}