reslist.txt support

This commit is contained in:
mittorn 2018-05-05 02:24:55 +07:00
parent 37aa201ed7
commit 817206815d
1 changed files with 14 additions and 6 deletions

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;