X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network.h;h=42bee347766226016a3b85b522a437062ecf21e1;hb=c2d67378dd5c82de50b8fbbbe222ec6be2da4eee;hp=a9b5c8f3423b79093053abca15af6ddba098a361;hpb=1740c935bfdacc65c5c7e4bb95fba1ada1f7118a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index a9b5c8f..42bee34 100644 --- a/network.h +++ b/network.h @@ -12,13 +12,13 @@ #define SR_USE_LOCALHOST /* Call it at start; Connects us to the gameserver */ -static void network_init(void); +static int network_init(void); /* Run this from main loop */ static void network_update(void); /* Call it at shutdown */ -static void network_end(void); +static void network_end(void*_); /* * Can buffer up a bunch of these by calling many times, they will be @@ -320,7 +320,7 @@ static void network_update(void) } else { - vg_log( "Not making remote connection; app ticket not gotten\n" ); + vg_low( "Not making remote connection; app ticket not gotten\n" ); } } @@ -334,7 +334,7 @@ static void network_update(void) } } -static void network_init(void) +static int network_init(void) { if( steam_ready ) { @@ -342,9 +342,11 @@ static void network_init(void) on_server_connect_status ); request_auth_ticket(); } + + return 1; } -static void network_end(void) +static void network_end(void*_) { /* TODO: Fire off any buffered highscores that need to be setn */ if( cremote_state == k_ESteamNetworkingConnectionState_Connected || @@ -357,9 +359,9 @@ static void network_end(void) #else /* SR_NETWORKED */ -static void network_init(void){} +static int network_init(void){ return 1; } static void network_update(void){} -static void network_end(void){} +static void network_end(void*_){} #endif /* SR_NETWORKED */ #endif /* NETWORK_H */