diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-11-25 20:57:50 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-11-25 20:57:50 +0000 |
commit | b00e7bd024285970dd00cfc75d8e690bfa475501 (patch) | |
tree | 22ceeee3027fd4872f5621650557bc8ae4391948 /source/sv_game.c | |
parent | 5eaaac93ad3b0d2777815717059d977912bd96f7 (diff) |
Changed Com_sprintf --> Q_concat in quite some cases.
Make sure WAVE sound driver is built by default.
Added --disable-wave option to `configure'.
Command line history is now remembered between sessions.
ALT+Space refreshes all servers in Server Browser.
Handle command line agruments like original Q2 engine did.
Diffstat (limited to 'source/sv_game.c')
-rw-r--r-- | source/sv_game.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source/sv_game.c b/source/sv_game.c index f25fb7c..17de8bd 100644 --- a/source/sv_game.c +++ b/source/sv_game.c @@ -830,28 +830,28 @@ void SV_InitGameProgs ( void ) #ifdef _WIN32 // FIXME: check current debug directory first for // e.g. running legacy stuff like Q2Admin - Com_sprintf( path, sizeof( path ), "%s" PATH_SEP_STRING "release" - PATH_SEP_STRING GAMELIB, Sys_GetCurrentDirectory() ); + Q_concat( path, sizeof( path ), Sys_GetCurrentDirectory(), + PATH_SEP_STRING "release" PATH_SEP_STRING GAMELIB, NULL ); entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library ); if( !entry ) #endif { // try refdir first for development purposes - Com_sprintf( path, sizeof( path ), "%s" PATH_SEP_STRING GAMELIB, - sys_refdir->string ); + Q_concat( path, sizeof( path ), sys_refdir->string, + PATH_SEP_STRING GAMELIB, NULL ); entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library ); if( !entry ) { // try gamedir if( fs_game->string[0] ) { - Com_sprintf( path, sizeof( path ), "%s" PATH_SEP_STRING "%s" - PATH_SEP_STRING GAMELIB, sys_libdir->string, fs_game->string ); + Q_concat( path, sizeof( path ), sys_libdir->string, + PATH_SEP_STRING, fs_game->string, PATH_SEP_STRING GAMELIB, NULL ); entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library ); } if( !entry ) { // try baseq2 - Com_sprintf( path, sizeof( path ), "%s" PATH_SEP_STRING BASEGAME - PATH_SEP_STRING GAMELIB, sys_libdir->string ); + Q_concat( path, sizeof( path ), sys_libdir->string, + PATH_SEP_STRING BASEGAME PATH_SEP_STRING GAMELIB, NULL ); entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library ); if( !entry ) { Com_Error( ERR_DROP, "Failed to load game DLL" ); @@ -945,5 +945,7 @@ void SV_InitGameProgs ( void ) // initialize ge->Init (); + + Sys_FixFPCW(); } |