diff --git a/cheevos/cheevos.c b/cheevos/cheevos.c index 6d51de452f..34524dba7c 100644 --- a/cheevos/cheevos.c +++ b/cheevos/cheevos.c @@ -1906,7 +1906,7 @@ static void cheevos_unlocked(void *task_data, void *user_data, RARCH_ERR("[CHEEVOS]: error awarding achievement %u, retrying...\n", cheevo->id); cheevos_make_unlock_url(cheevo, url, sizeof(url)); - task_push_http_transfer(url, true, NULL, cheevos_unlocked, cheevo); + task_push_http_transfer_raw(url, true, NULL, cheevos_unlocked, cheevo); } } @@ -1961,7 +1961,7 @@ static void cheevos_test_cheevo_set(const cheevoset_t *set) runloop_msg_queue_push(cheevo->description, 0, 3 * 60, false); cheevos_make_unlock_url(cheevo, url, sizeof(url)); - task_push_http_transfer(url, true, NULL, + task_push_http_transfer_raw(url, true, NULL, cheevos_unlocked, cheevo); if(settings->bools.cheevos_auto_screenshot) @@ -2176,7 +2176,7 @@ static void cheevos_test_leaderboards(void) char formatted_value[16]; cheevos_make_lboard_url(lboard, url, sizeof(url)); - task_push_http_transfer(url, true, NULL, + task_push_http_transfer_raw(url, true, NULL, cheevos_lboard_submit, lboard); RARCH_LOG("[CHEEVOS]: submit lboard %s\n", lboard->title); diff --git a/tasks/task_http.c b/tasks/task_http.c index d174c6cccf..edfacac47f 100644 --- a/tasks/task_http.c +++ b/tasks/task_http.c @@ -349,6 +349,17 @@ void* task_push_http_transfer(const char *url, bool mute, return task_push_http_transfer_generic(conn, url, mute, type, cb, user_data); } +void* task_push_http_transfer_raw(const char *url, bool mute, + const char *type, + retro_task_callback_t cb, void *user_data) +{ + struct http_connection_t *conn; + + conn = net_http_connection_new(url, "GET", NULL); + + return task_push_http_transfer_generic(conn, url, mute, type, cb, user_data); +} + void* task_push_http_post_transfer(const char *url, const char *post_data, bool mute, const char *type, retro_task_callback_t cb, void *user_data) diff --git a/tasks/tasks_internal.h b/tasks/tasks_internal.h index f127900160..dbf585dc91 100644 --- a/tasks/tasks_internal.h +++ b/tasks/tasks_internal.h @@ -102,6 +102,9 @@ typedef struct void *task_push_http_transfer(const char *url, bool mute, const char *type, retro_task_callback_t cb, void *userdata); +void *task_push_http_transfer_raw(const char *url, bool mute, const char *type, + retro_task_callback_t cb, void *userdata); + void *task_push_http_post_transfer(const char *url, const char *post_data, bool mute, const char *type, retro_task_callback_t cb, void *userdata);