mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
utils: mdldec: add size argument to COM_FileBase calls
This commit is contained in:
parent
8b96e7ca87
commit
cfdfdd5c93
@ -244,7 +244,7 @@ static qboolean LoadMDL( const char *modelname )
|
||||
}
|
||||
}
|
||||
|
||||
COM_FileBase( modelname, modelfile );
|
||||
COM_FileBase( modelname, modelfile, sizeof( modelfile ));
|
||||
|
||||
SequenceNameFix();
|
||||
|
||||
|
@ -329,7 +329,7 @@ static void WriteBodyGroupInfo( FILE *fp )
|
||||
{
|
||||
model = (mstudiomodel_t *)( (byte *)model_hdr + bodypart->modelindex );
|
||||
|
||||
COM_FileBase( model->name, modelname );
|
||||
COM_FileBase( model->name, modelname, sizeof( modelname ));
|
||||
|
||||
fprintf( fp, "$body \"%s\" \"%s\"\n\n", bodypart->name, modelname );
|
||||
continue;
|
||||
@ -349,7 +349,7 @@ static void WriteBodyGroupInfo( FILE *fp )
|
||||
continue;
|
||||
}
|
||||
|
||||
COM_FileBase( model->name, modelname );
|
||||
COM_FileBase( model->name, modelname, sizeof( modelname ));
|
||||
|
||||
fprintf( fp, "studio \"%s\"\n", modelname );
|
||||
}
|
||||
|
@ -465,7 +465,7 @@ static void WriteReferences( void )
|
||||
if( !Q_strncmp( model->name, "blank", 5 ) )
|
||||
continue;
|
||||
|
||||
COM_FileBase( model->name, name );
|
||||
COM_FileBase( model->name, name, sizeof( name ));
|
||||
|
||||
len = Q_snprintf( filename, MAX_SYSPATH, "%s%s.smd", destdir, name );
|
||||
|
||||
|
@ -39,7 +39,7 @@ static void WriteBMP( mstudiotexture_t *texture )
|
||||
bmp_t bmp_hdr = {0,};
|
||||
size_t texture_size;
|
||||
|
||||
COM_FileBase( texture->name, texturename );
|
||||
COM_FileBase( texture->name, texturename, sizeof( texturename ));
|
||||
len = Q_snprintf( filename, MAX_SYSPATH, "%s%s.bmp", destdir, texturename );
|
||||
|
||||
if( len == -1 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user