fixing cheevos (broken after #6389)

This commit is contained in:
meleu 2018-03-15 23:16:49 -03:00 committed by meleu
parent 29a057ac98
commit eb5a69ded3
3 changed files with 17 additions and 3 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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);