X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=server.c;h=dfe8be870a25ad55f0ac084c7d92709391b0b3c3;hb=47941822dae18a018c985847b052e70214a3ccc6;hp=d5d5d91f10291c708a6faa28c75ae27573a36f49;hpb=4f96bd0040e35ecb21d353ee2b895129682d22c1;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/server.c b/server.c index d5d5d91..dfe8be8 100644 --- a/server.c +++ b/server.c @@ -36,6 +36,7 @@ static void *hSteamHTTP, static u8 steam_symetric_key[ k_nSteamEncryptedAppTicketSymmetricKeyLen ]; static HSteamNetPollGroup client_pollgroup; +#if 0 static void recieve_http( void *callresult, void *context ) { HTTPRequestCompleted_t *result = callresult; @@ -55,6 +56,7 @@ static void recieve_http( void *callresult, void *context ) vg_free( buffer ); SteamAPI_ISteamHTTP_ReleaseHTTPRequest( hSteamHTTP, result->m_hRequest ); } +#endif static u64_steamid get_connection_authsteamid( SteamNetworkingMessage_t *msg ) { @@ -335,7 +337,9 @@ int main( int argc, char *argv[] ) /* TODO: Options to override, ammend, remove etc */ + vg_prealloc_quota( 80*1024*1024 ); highscores_init( 250000, 10000 ); + if( !highscores_read() ) highscores_create_db(); @@ -424,7 +428,6 @@ int main( int argc, char *argv[] ) } highscores_serialize_all(); - highscores_free(); SteamAPI_ISteamNetworkingSockets_DestroyPollGroup( hSteamNetworkingSockets, client_pollgroup );