engine: client: send tempdecal.wad to GoldSrc servers
This commit is contained in:
parent
2db7cb0d64
commit
9600218757
1 changed files with 19 additions and 15 deletions
|
@ -1088,14 +1088,12 @@ static void CL_WriteSteamTicket( sizebuf_t *send )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 // FIXME
|
//if( !Q_strcmp( cl_ticket_generator.string, "steam" )
|
||||||
if( !Q_strcmp( cl_ticket_generator.string, "steam" )
|
//{
|
||||||
{
|
// i = SteamBroker_InitiateGameConnection( buf, sizeof( buf ));
|
||||||
i = SteamBroker_InitiateGameConnection( buf, sizeof( buf ));
|
// MSG_WriteBytes( send, buf, i );
|
||||||
MSG_WriteBytes( send, buf, i );
|
// return;
|
||||||
return;
|
//}
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
s = ID_GetMD5();
|
s = ID_GetMD5();
|
||||||
CRC32_Init( &crc );
|
CRC32_Init( &crc );
|
||||||
|
@ -1387,7 +1385,7 @@ static resource_t *CL_AddResource( resourcetype_t type, const char *name, int si
|
||||||
static void CL_CreateResourceList( void )
|
static void CL_CreateResourceList( void )
|
||||||
{
|
{
|
||||||
char szFileName[MAX_OSPATH];
|
char szFileName[MAX_OSPATH];
|
||||||
byte rgucMD5_hash[16];
|
byte rgucMD5_hash[16] = { 0 };
|
||||||
resource_t *pNewResource;
|
resource_t *pNewResource;
|
||||||
int nSize;
|
int nSize;
|
||||||
file_t *fp;
|
file_t *fp;
|
||||||
|
@ -1396,13 +1394,19 @@ static void CL_CreateResourceList( void )
|
||||||
cl.num_resources = 0;
|
cl.num_resources = 0;
|
||||||
memset( rgucMD5_hash, 0, sizeof( rgucMD5_hash ));
|
memset( rgucMD5_hash, 0, sizeof( rgucMD5_hash ));
|
||||||
|
|
||||||
|
if( cls.legacymode == PROTO_GOLDSRC )
|
||||||
|
{
|
||||||
|
// TODO: actually repack remapped.bmp into a WAD for GoldSrc servers
|
||||||
|
Q_strncpy( szFileName, "tempdecal.wad", sizeof( szFileName ));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
// sanitize cvar value
|
// sanitize cvar value
|
||||||
if( Q_strcmp( cl_logoext.string, "bmp" ) &&
|
if( Q_strcmp( cl_logoext.string, "bmp" ) && Q_strcmp( cl_logoext.string, "png" ))
|
||||||
Q_strcmp( cl_logoext.string, "png" ))
|
|
||||||
Cvar_DirectSet( &cl_logoext, "bmp" );
|
Cvar_DirectSet( &cl_logoext, "bmp" );
|
||||||
|
|
||||||
Q_snprintf( szFileName, sizeof( szFileName ),
|
Q_snprintf( szFileName, sizeof( szFileName ), "logos/remapped.%s", cl_logoext.string );
|
||||||
"logos/remapped.%s", cl_logoext.string );
|
}
|
||||||
fp = FS_Open( szFileName, "rb", true );
|
fp = FS_Open( szFileName, "rb", true );
|
||||||
|
|
||||||
if( !fp )
|
if( !fp )
|
||||||
|
|
Loading…
Add table
Reference in a new issue