From 20b6bbc65959d48644332f480ebab5b074f92802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Wed, 25 Mar 2015 16:21:34 -0500 Subject: [PATCH] Print progress in the OSD --- runloop_data.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runloop_data.c b/runloop_data.c index 9d10fbd84b..5144805aac 100644 --- a/runloop_data.c +++ b/runloop_data.c @@ -142,6 +142,14 @@ static int rarch_main_data_http_iterate_transfer(http_handle_t *http) // RARCH_LOG("%.9llu / %.9llu \r", (unsigned long long)pos, (unsigned long long)tot); //#endif RARCH_LOG("Download progress: %.d%% \r", percent); + char msg[PATH_MAX_LENGTH]; + + if(percent > 0) + { + snprintf(msg, sizeof(msg), "Download progress: %d%%", percent); + rarch_main_msg_queue_push(msg, 1, 10, true); + } + return -1; }