reslist.txt support
This commit is contained in:
parent
37aa201ed7
commit
817206815d
1 changed files with 14 additions and 6 deletions
|
@ -274,15 +274,11 @@ model_t *SV_ModelHandle( int modelindex )
|
||||||
return sv.models[modelindex];
|
return sv.models[modelindex];
|
||||||
}
|
}
|
||||||
|
|
||||||
void SV_CreateGenericResources( void )
|
void SV_ReadResourceList( const char *filename )
|
||||||
{
|
{
|
||||||
string filename, token;
|
string token;
|
||||||
char *afile, *pfile;
|
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 );
|
afile = FS_LoadFile( filename, NULL, false );
|
||||||
if( !afile ) return;
|
if( !afile ) return;
|
||||||
|
|
||||||
|
@ -304,6 +300,18 @@ void SV_CreateGenericResources( void )
|
||||||
Mem_Free( afile );
|
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 )
|
void SV_CreateResourceList( void )
|
||||||
{
|
{
|
||||||
qboolean ffirstsent = false;
|
qboolean ffirstsent = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue