Add logging to main_entry_decide

This commit is contained in:
Twinaphex 2014-09-14 16:08:28 +02:00
parent a3269ff9ed
commit cb1eea1ec2

View File

@ -85,16 +85,31 @@ int main_entry_decide(signature(), args_type() args)
frontend_loop = NULL; frontend_loop = NULL;
if (g_extern.lifecycle_state & (1ULL << MODE_CLEAR_INPUT)) if (g_extern.lifecycle_state & (1ULL << MODE_CLEAR_INPUT))
{
RARCH_LOG("Frontend loop state changed : MODE_CLEAR_INPUT.\n");
frontend_loop = main_entry_iterate_clear_input; frontend_loop = main_entry_iterate_clear_input;
}
else if (g_extern.lifecycle_state & (1ULL << MODE_LOAD_GAME)) else if (g_extern.lifecycle_state & (1ULL << MODE_LOAD_GAME))
{
RARCH_LOG("Frontend loop state changed : MODE_LOAD_GAME.\n");
frontend_loop = main_entry_iterate_load_content; frontend_loop = main_entry_iterate_load_content;
}
else if (g_extern.lifecycle_state & (1ULL << MODE_GAME)) else if (g_extern.lifecycle_state & (1ULL << MODE_GAME))
{
RARCH_LOG("Frontend loop state changed : MODE_GAME.\n");
frontend_loop = main_entry_iterate_content; frontend_loop = main_entry_iterate_content;
}
#ifdef HAVE_MENU #ifdef HAVE_MENU
else if (g_extern.lifecycle_state & (1ULL << MODE_MENU_PREINIT)) else if (g_extern.lifecycle_state & (1ULL << MODE_MENU_PREINIT))
{
RARCH_LOG("Frontend loop state changed : MODE_MENU_PREINIT.\n");
frontend_loop = main_entry_iterate_menu_preinit; frontend_loop = main_entry_iterate_menu_preinit;
}
else if (g_extern.lifecycle_state & (1ULL << MODE_MENU)) else if (g_extern.lifecycle_state & (1ULL << MODE_MENU))
{
RARCH_LOG("Frontend loop state changed : MODE_MENU.\n");
frontend_loop = main_entry_iterate_menu; frontend_loop = main_entry_iterate_menu;
}
#endif #endif
return 0; return 0;