mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Add logging to main_entry_decide
This commit is contained in:
parent
a3269ff9ed
commit
cb1eea1ec2
@ -85,16 +85,31 @@ int main_entry_decide(signature(), args_type() args)
|
||||
frontend_loop = NULL;
|
||||
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
else if (g_extern.lifecycle_state & (1ULL << MODE_GAME))
|
||||
{
|
||||
RARCH_LOG("Frontend loop state changed : MODE_GAME.\n");
|
||||
frontend_loop = main_entry_iterate_content;
|
||||
}
|
||||
#ifdef HAVE_MENU
|
||||
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;
|
||||
}
|
||||
else if (g_extern.lifecycle_state & (1ULL << MODE_MENU))
|
||||
{
|
||||
RARCH_LOG("Frontend loop state changed : MODE_MENU.\n");
|
||||
frontend_loop = main_entry_iterate_menu;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user