mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 06:32:10 +08:00
engine: make use of platform-unique library naming scheme
This commit is contained in:
@@ -234,7 +234,6 @@ typedef struct gameinfo_s
|
||||
|
||||
char game_dll_linux[64]; // custom path for game.dll
|
||||
char game_dll_osx[64]; // custom path for game.dll
|
||||
char client_lib[64]; // custom name of client library
|
||||
|
||||
qboolean added;
|
||||
} gameinfo_t;
|
||||
|
||||
@@ -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_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->client_lib, CLIENTDLL, sizeof( GameInfo->client_lib ));
|
||||
|
||||
// .ico path
|
||||
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 );
|
||||
}
|
||||
else if( !Q_stricmp( token, "clientlib" ))
|
||||
{
|
||||
pfile = COM_ParseFile( pfile, GameInfo->client_lib );
|
||||
}
|
||||
else if( isGameInfo && !Q_stricmp( token, "dllpath" ))
|
||||
{
|
||||
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 );
|
||||
|
||||
SI.GameInfo = SI.games[i];
|
||||
|
||||
if( !Sys_GetParmFromCmdLine( "-dll", SI.gamedll ) )
|
||||
{
|
||||
#ifdef XASH_INTERNAL_GAMELIBS
|
||||
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
|
||||
SI.gamedll[0] = 0;
|
||||
}
|
||||
|
||||
if( !Sys_GetParmFromCmdLine( "-clientlib", SI.clientlib ) )
|
||||
{
|
||||
#ifdef XASH_INTERNAL_GAMELIBS
|
||||
Q_strncpy( SI.clientlib, "client", sizeof( SI.clientlib ) );
|
||||
#else
|
||||
Q_strncpy( SI.clientlib, GI->client_lib, sizeof( SI.clientlib ) );
|
||||
#endif
|
||||
SI.clientlib[0] = 0;
|
||||
}
|
||||
|
||||
FS_Rescan(); // create new filesystem
|
||||
|
||||
Reference in New Issue
Block a user