From f4418212971c9e35ec4d70a3d44df22628337f7e Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Sat, 7 Jan 2023 16:58:17 +0100 Subject: [PATCH] Start unpause restriction. --- intl/msg_hash_us.h | 2 +- runloop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 25f50ff3df..bac5029ccc 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2728,7 +2728,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_SUBLABEL_PAUSE_ON_DISCONNECT, - "Pause content when any controller is disconnected." + "Pause content when any controller is disconnected. Resume with Start." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_BUTTON_AXIS_THRESHOLD, diff --git a/runloop.c b/runloop.c index 9f8f72d7f4..8e2e835f9a 100644 --- a/runloop.c +++ b/runloop.c @@ -7193,7 +7193,7 @@ static enum runloop_state_enum runloop_check_state( bool pause_pressed = BIT256_GET(current_bits, RARCH_PAUSE_TOGGLE); /* Allow unpausing with Start */ - if (runloop_paused) + if (runloop_paused && settings->bools.pause_on_disconnect) pause_pressed |= BIT256_GET(current_bits, RETRO_DEVICE_ID_JOYPAD_START); #ifdef HAVE_CHEEVOS