From 491c0457a6148319285fe7ef1e29106e66c91210 Mon Sep 17 00:00:00 2001 From: eadmaster <925171+eadmaster@users.noreply.github.com> Date: Tue, 28 Jan 2020 21:40:56 +0100 Subject: [PATCH] added detection of paused state --- retroarch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index e5d0ddd36d..739a7420e9 100644 --- a/retroarch.c +++ b/retroarch.c @@ -3758,6 +3758,8 @@ static bool command_get_status(const char* arg) } else { /* add some content info */ /* char* content_name = load_content_info->content->elems[0].data; */ /* full path */ + const char* status = "RUNNING"; + if( runloop_paused ) status = "PAUSED"; const char* content_name = path_basename(path_get(RARCH_PATH_BASENAME)); /* filename only without ext */ int content_crc32 = content_get_crc(); const char* system_id = NULL; @@ -3766,7 +3768,7 @@ static bool command_get_status(const char* arg) if (core_info) system_id = core_info->system_id; if (!system_id) system_id = runloop_system.info.library_name; - snprintf(reply, sizeof(reply), "GET_STATUS RUNNING %s,%s,crc32=%x\n", system_id, content_name, content_crc32); + snprintf(reply, sizeof(reply), "GET_STATUS %s %s,%s,crc32=%x\n", status, system_id, content_name, content_crc32); } command_reply(reply, strlen(reply));