|
|
@ -1489,7 +1489,6 @@ void FS_InitGameInfo( gameinfo_t *GameInfo, const char *gamedir ) |
|
|
|
Q_strncpy( GameInfo->game_dll, "dlls/hl.dll", sizeof( GameInfo->game_dll )); |
|
|
|
Q_strncpy( GameInfo->game_dll, "dlls/hl.dll", sizeof( GameInfo->game_dll )); |
|
|
|
Q_strncpy( GameInfo->game_dll_linux, "dlls/hl.so", sizeof( GameInfo->game_dll_linux )); |
|
|
|
Q_strncpy( GameInfo->game_dll_linux, "dlls/hl.so", sizeof( GameInfo->game_dll_linux )); |
|
|
|
Q_strncpy( GameInfo->game_dll_osx, "dlls/hl.dylib", sizeof( GameInfo->game_dll_osx )); |
|
|
|
Q_strncpy( GameInfo->game_dll_osx, "dlls/hl.dylib", sizeof( GameInfo->game_dll_osx )); |
|
|
|
Q_strncpy( GameInfo->client_lib, CLIENTDLL, sizeof( GameInfo->client_lib )); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// .ico path
|
|
|
|
// .ico path
|
|
|
|
Q_strncpy( GameInfo->iconpath, "game.ico", sizeof( GameInfo->iconpath )); |
|
|
|
Q_strncpy( GameInfo->iconpath, "game.ico", sizeof( GameInfo->iconpath )); |
|
|
@ -1654,10 +1653,6 @@ void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, const qbool |
|
|
|
{ |
|
|
|
{ |
|
|
|
pfile = COM_ParseFile( pfile, GameInfo->sp_entity ); |
|
|
|
pfile = COM_ParseFile( pfile, GameInfo->sp_entity ); |
|
|
|
} |
|
|
|
} |
|
|
|
else if( !Q_stricmp( token, "clientlib" )) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
pfile = COM_ParseFile( pfile, GameInfo->client_lib ); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if( isGameInfo && !Q_stricmp( token, "dllpath" )) |
|
|
|
else if( isGameInfo && !Q_stricmp( token, "dllpath" )) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pfile = COM_ParseFile( pfile, GameInfo->dll_path ); |
|
|
|
pfile = COM_ParseFile( pfile, GameInfo->dll_path ); |
|
|
@ -1941,25 +1936,15 @@ void FS_LoadGameInfo( const char *rootfolder ) |
|
|
|
Sys_Error( "Couldn't find game directory '%s'\n", fs_gamedir ); |
|
|
|
Sys_Error( "Couldn't find game directory '%s'\n", fs_gamedir ); |
|
|
|
|
|
|
|
|
|
|
|
SI.GameInfo = SI.games[i]; |
|
|
|
SI.GameInfo = SI.games[i]; |
|
|
|
|
|
|
|
|
|
|
|
if( !Sys_GetParmFromCmdLine( "-dll", SI.gamedll ) ) |
|
|
|
if( !Sys_GetParmFromCmdLine( "-dll", SI.gamedll ) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifdef XASH_INTERNAL_GAMELIBS |
|
|
|
SI.gamedll[0] = 0; |
|
|
|
Q_strncpy( SI.gamedll, "server", sizeof( SI.gamedll ) ); |
|
|
|
|
|
|
|
#elif defined(_WIN32) |
|
|
|
|
|
|
|
Q_strncpy( SI.gamedll, GI->game_dll, sizeof( SI.gamedll ) ); |
|
|
|
|
|
|
|
#elif defined(__APPLE__) |
|
|
|
|
|
|
|
Q_strncpy( SI.gamedll, GI->game_dll_osx, sizeof( SI.gamedll ) ); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
Q_strncpy( SI.gamedll, GI->game_dll_linux, sizeof( SI.gamedll ) ); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if( !Sys_GetParmFromCmdLine( "-clientlib", SI.clientlib ) ) |
|
|
|
if( !Sys_GetParmFromCmdLine( "-clientlib", SI.clientlib ) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifdef XASH_INTERNAL_GAMELIBS |
|
|
|
SI.clientlib[0] = 0; |
|
|
|
Q_strncpy( SI.clientlib, "client", sizeof( SI.clientlib ) ); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
Q_strncpy( SI.clientlib, GI->client_lib, sizeof( SI.clientlib ) ); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
FS_Rescan(); // create new filesystem
|
|
|
|
FS_Rescan(); // create new filesystem
|
|
|
|