mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 02:38:11 +00:00
Print progress in the OSD
This commit is contained in:
parent
d8eb6d031f
commit
20b6bbc659
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user