#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
static u8 steam_app_ticket[ 1024 ];
static u32 steam_app_ticket_length;
static int network_name_update = 1;
-static int network_scores_updated = 0;
static HSteamNetConnection cremote;
static ESteamNetworkingConnectionState cremote_state =
}
else
{
- vg_log( "Not making remote connection; app ticket not gotten\n" );
+ vg_low( "Not making remote connection; app ticket not gotten\n" );
}
}
}
}
-static void network_init(void)
+static int network_init(void)
{
if( steam_ready )
{
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 ||
#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 */