mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: add a shortcut for loading custom DLLs that follow library naming scheme (like bots)
This commit is contained in:
@@ -226,32 +226,29 @@ void COM_GetCommonLibraryPath( ECommonLibraryType eLibType, char *out, size_t si
|
||||
case LIBRARY_GAMEUI:
|
||||
if( COM_CheckStringEmpty( host.menulib ))
|
||||
{
|
||||
Q_strncpy( out, host.menulib, size );
|
||||
}
|
||||
else
|
||||
{
|
||||
COM_GenerateClientLibraryPath( "menu", out, size );
|
||||
if( host.menulib[0] == '@' )
|
||||
COM_GenerateClientLibraryPath( host.menulib + 1, out, size );
|
||||
else Q_strncpy( out, host.menulib, size );
|
||||
}
|
||||
else COM_GenerateClientLibraryPath( "menu", out, size );
|
||||
break;
|
||||
case LIBRARY_CLIENT:
|
||||
if( COM_CheckStringEmpty( host.clientlib ))
|
||||
{
|
||||
Q_strncpy( out, host.clientlib, size );
|
||||
}
|
||||
else
|
||||
{
|
||||
COM_GenerateClientLibraryPath( "client", out, size );
|
||||
if( host.clientlib[0] == '@' )
|
||||
COM_GenerateClientLibraryPath( host.clientlib + 1, out, size );
|
||||
else Q_strncpy( out, host.clientlib, size );
|
||||
}
|
||||
else COM_GenerateClientLibraryPath( "client", out, size );
|
||||
break;
|
||||
case LIBRARY_SERVER:
|
||||
if( COM_CheckStringEmpty( host.gamedll ))
|
||||
{
|
||||
Q_strncpy( out, host.gamedll, size );
|
||||
}
|
||||
else
|
||||
{
|
||||
COM_GenerateServerLibraryPath( out, size );
|
||||
if( host.gamedll[0] == '@' )
|
||||
COM_GenerateClientLibraryPath( host.gamedll + 1, out, size );
|
||||
else Q_strncpy( out, host.gamedll, size );
|
||||
}
|
||||
else COM_GenerateServerLibraryPath( out, size );
|
||||
break;
|
||||
default:
|
||||
ASSERT( 0 );
|
||||
|
||||
Reference in New Issue
Block a user