mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-07 02:47:24 +00:00
Add g_runloop.is_idle
This commit is contained in:
parent
e37a4aa46e
commit
5b3ab881ba
@ -429,6 +429,7 @@ struct runloop
|
|||||||
{
|
{
|
||||||
/* Lifecycle state checks. */
|
/* Lifecycle state checks. */
|
||||||
bool is_paused;
|
bool is_paused;
|
||||||
|
bool is_idle;
|
||||||
bool is_menu;
|
bool is_menu;
|
||||||
bool is_slowmotion;
|
bool is_slowmotion;
|
||||||
|
|
||||||
|
@ -571,6 +571,9 @@ static int do_state_checks(
|
|||||||
retro_input_t input, retro_input_t old_input,
|
retro_input_t input, retro_input_t old_input,
|
||||||
retro_input_t trigger_input)
|
retro_input_t trigger_input)
|
||||||
{
|
{
|
||||||
|
if (g_runloop.is_idle)
|
||||||
|
return 1;
|
||||||
|
|
||||||
if (BIT64_GET(trigger_input, RARCH_SCREENSHOT))
|
if (BIT64_GET(trigger_input, RARCH_SCREENSHOT))
|
||||||
rarch_main_command(RARCH_CMD_TAKE_SCREENSHOT);
|
rarch_main_command(RARCH_CMD_TAKE_SCREENSHOT);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user