(Lakka) Allow quitting RetroArch

This commit is contained in:
Jean-André Santoni 2014-08-27 22:18:17 +02:00
parent 01e440de01
commit 4ba8b16671

View File

@ -379,9 +379,11 @@ static int menu_lakka_iterate(unsigned action)
lakka_open_submenu();
depth = 1;
}
else if (depth == 0 && menu_active_category == 0 && active_item->active_subitem == 1) // Hardcoded "Quit" item index
else if (depth == 0 && menu_active_category == 0 && active_category->active_item == active_category->num_items-1)
{
printf("EXIT\n");
add_tween(DELAY, 1.0, &global_alpha, &inOutQuad, NULL);
g_extern.lifecycle_state &= ~(1ULL << MODE_GAME);
return -1;
}
break;