Move frame_time_last= 0 to rarch_set_action_state

This commit is contained in:
twinaphex 2014-09-21 04:48:37 +02:00
parent bd8b5be03f
commit 1e4cd8abe0

View File

@ -3177,6 +3177,7 @@ void rarch_main_set_state(unsigned cmd)
{
case RARCH_ACTION_STATE_MENU_PREINIT:
g_extern.lifecycle_state |= (1ULL << MODE_MENU_PREINIT);
g_extern.system.frame_time_last = 0;
break;
case RARCH_ACTION_STATE_MENU_PREINIT_FINISHED:
g_extern.lifecycle_state &= ~(1ULL << MODE_MENU_PREINIT);
@ -3602,7 +3603,6 @@ bool rarch_main_iterate(void)
{
/* Always go into menu if dummy core is loaded. */
rarch_main_set_state(RARCH_ACTION_STATE_MENU_PREINIT);
g_extern.system.frame_time_last = 0;
return false; /* Enter menu, don't exit. */
}