X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network.h;h=3a49d63795473646e9609329cad58e87abdc16eb;hb=b8d9653b23cc9d09608e05f08020fb923b3305ac;hp=ffd2dbe3cf4d0d98eb454a9281032e4467ae77b0;hpb=872ad3e040f22df357929d3778a955ae8c4ac52b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index ffd2dbe..3a49d63 100644 --- a/network.h +++ b/network.h @@ -92,11 +92,12 @@ VG_STATIC void request_auth_ticket(void) */ vg_info( "Requesting new authorization ticket\n" ); - steam_async *call = steam_new_async(); - call->data = NULL; + + vg_steam_async_call *call = vg_alloc_async_steam_api_call(); + call->userdata = NULL; call->p_handler = on_auth_ticket_recieved; - call->id = SteamAPI_ISteamUser_RequestEncryptedAppTicket( hSteamUser, - NULL, 0 ); + call->id = + SteamAPI_ISteamUser_RequestEncryptedAppTicket( hSteamUser, NULL, 0 ); } VG_STATIC void send_auth_ticket(void) @@ -134,15 +135,12 @@ VG_STATIC void send_score_update(void) setscore->inetmsg_id = k_inetmsg_set_score; int count = 0; - for( u32 i=0; irecord_count = count;