From: hgn Date: Fri, 14 Jul 2023 16:41:12 +0000 (+0100) Subject: fixed server compile errors X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=721322812d9fcfa648268aab34ec1879c9414dfe;p=carveJwlIkooP6JGAAIwe30JlM.git fixed server compile errors --- diff --git a/highscores.h b/highscores.h index c94087f..1b9d75c 100644 --- a/highscores.h +++ b/highscores.h @@ -101,5 +101,12 @@ highscore_system; VG_STATIC int highscore_intr( char *buf, int value, int len, char alt ); VG_STATIC int highscore_intl( char *buf, int value, int len ); VG_STATIC void highscores_board_printf( FILE *fp, const char *buf, u32 count ); +VG_STATIC aatree_ptr highscore_set_user_nickname( u64 steamid, char nick[16] ); +VG_STATIC aatree_ptr highscores_push_record( highscore_record *record ); +VG_STATIC void highscores_board_generate( char *buf, u32 id, u32 count ); +VG_STATIC void highscores_init( u32 pool_size, u32 playerinfo_pool_size ); +VG_STATIC int highscores_read(void); +VG_STATIC void highscores_create_db(void); +VG_STATIC int highscores_serialize_all(void); #endif /* HIGHSCORES_H */ diff --git a/server.c b/server.c index 3a0d666..a441573 100644 --- a/server.c +++ b/server.c @@ -15,8 +15,7 @@ volatile sig_atomic_t sig_stop; -void inthandler( int signum ) -{ +static void inthandler( int signum ) { sig_stop = 1; } @@ -29,6 +28,9 @@ void inthandler( int signum ) #include "network_msg.h" #include "highscores.h" +/* implementation */ +#include "highscores.c" + static const u64 k_connection_unauthorized = 0xffffffffffffffff; static void *hSteamHTTP,