2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 18:07:09 +01:00

reslist.txt support

This commit is contained in:
mittorn 2018-05-05 02:24:55 +07:00
parent 37aa201ed7
commit 817206815d

View File

@ -274,15 +274,11 @@ model_t *SV_ModelHandle( int modelindex )
return sv.models[modelindex];
}
void SV_CreateGenericResources( void )
void SV_ReadResourceList( const char *filename )
{
string filename, token;
string token;
char *afile, *pfile;
Q_strncpy( filename, sv.model_precache[1], sizeof( filename ));
COM_ReplaceExtension( filename, ".res" );
COM_FixSlashes( filename );
afile = FS_LoadFile( filename, NULL, false );
if( !afile ) return;
@ -304,6 +300,18 @@ void SV_CreateGenericResources( void )
Mem_Free( afile );
}
void SV_CreateGenericResources( void )
{
string filename;
Q_strncpy( filename, sv.model_precache[1], sizeof( filename ));
COM_ReplaceExtension( filename, ".res" );
COM_FixSlashes( filename );
SV_ReadResourceList( filename );
SV_ReadResourceList( "reslist.txt" );
}
void SV_CreateResourceList( void )
{
qboolean ffirstsent = false;