mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
utils: mdldec: always write trailing slash for non-empty destination path.
This commit is contained in:
committed by
Alibek Omarov
parent
b6a235445a
commit
8d7b9c2f01
@@ -305,7 +305,7 @@ static qboolean LoadMDL( const char *modelname )
|
||||
return false;
|
||||
}
|
||||
|
||||
if( Q_strcmp( ext, "mdl" ) )
|
||||
if( Q_stricmp( ext, "mdl" ) )
|
||||
{
|
||||
fprintf( stderr, "ERROR: Only .mdl-files is supported.\n" );
|
||||
return false;
|
||||
@@ -354,12 +354,13 @@ static qboolean LoadMDL( const char *modelname )
|
||||
fprintf( stderr, "ERROR: Couldn't create directory %s\n", destdir );
|
||||
return false;
|
||||
}
|
||||
|
||||
COM_PathSlashFix( destdir );
|
||||
}
|
||||
else
|
||||
COM_ExtractFilePath( modelname, destdir );
|
||||
|
||||
if( destdir[0] != '\0' )
|
||||
COM_PathSlashFix( destdir );
|
||||
|
||||
len -= ( sizeof( ".mdl" ) - 1 ); // path length without extension
|
||||
|
||||
if( !model_hdr->numtextures )
|
||||
|
||||
Reference in New Issue
Block a user