Go through rarch_main_command instead of directly manipulating

g_extern.lifecycle_state
This commit is contained in:
twinaphex 2014-09-03 16:55:56 +02:00
parent 18b6ca3bf3
commit 74ddc9c3b7
2 changed files with 5 additions and 6 deletions

View File

@ -205,8 +205,7 @@ bool load_menu_content(void)
driver.menu_ctx->backend->shader_manager_init(driver.menu);
rarch_main_command(RARCH_CMD_VIDEO_SET_ASPECT_RATIO);
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
rarch_main_command(RARCH_CMD_RESUME);
return true;
}
@ -393,7 +392,7 @@ bool menu_iterate(void)
if (input_key_pressed_func(RARCH_QUIT_KEY)
|| !driver.video->alive(driver.video_data))
{
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
rarch_main_command(RARCH_CMD_RESUME);
return false;
}

View File

@ -3318,7 +3318,7 @@ void rarch_main_command(unsigned cmd)
return;
#endif
main_state(cmd);
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
rarch_main_command(RARCH_CMD_RESUME);
break;
case RARCH_CMD_RESET:
RARCH_LOG(RETRO_LOG_RESETTING_CONTENT);
@ -3328,14 +3328,14 @@ void rarch_main_command(unsigned cmd)
/* bSNES since v073r01 resets controllers to JOYPAD
* after a reset, so just enforce it here. */
init_controllers();
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
rarch_main_command(RARCH_CMD_RESUME);
break;
case RARCH_CMD_SAVE_STATE:
if (g_settings.savestate_auto_index)
g_settings.state_slot++;
main_state(cmd);
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
rarch_main_command(RARCH_CMD_RESUME);
break;
case RARCH_CMD_TAKE_SCREENSHOT:
take_screenshot();