From 7271cba7f09b65cf7e8400430a01bf98fa0f65a9 Mon Sep 17 00:00:00 2001 From: Sven <40953353+RetroSven@users.noreply.github.com> Date: Tue, 2 Oct 2018 14:10:17 -0400 Subject: [PATCH] do not display applying cheat message unless there are actually cheats (#7348) * do not display applying cheat message unless there are actually cheats * code style * style --- managers/cheat_manager.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/managers/cheat_manager.c b/managers/cheat_manager.c index c2ee0f5980..73971f69d2 100644 --- a/managers/cheat_manager.c +++ b/managers/cheat_manager.c @@ -88,8 +88,12 @@ void cheat_manager_apply_cheats(void) core_set_cheat(&cheat_info); } } - runloop_msg_queue_push(msg_hash_to_str(MSG_APPLYING_CHEAT), 1, 180, true); - RARCH_LOG("%s\n", msg_hash_to_str(MSG_APPLYING_CHEAT)); + + if (cheat_manager_state.size > 0) + { + runloop_msg_queue_push(msg_hash_to_str(MSG_APPLYING_CHEAT), 1, 180, true); + RARCH_LOG("%s\n", msg_hash_to_str(MSG_APPLYING_CHEAT)); + } #ifdef HAVE_CHEEVOS data_bool = idx != 0;