mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 15:32:01 +00:00
Go through rarch_main_command instead of directly manipulating
g_extern.lifecycle_state
This commit is contained in:
parent
18b6ca3bf3
commit
74ddc9c3b7
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user