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

filesystem: automatically fixup directory name case for base directories

This commit is contained in:
Alibek Omarov 2023-07-17 05:52:06 +03:00
parent 36ff819daf
commit 788bc820c8

View File

@ -1122,8 +1122,10 @@ void FS_AddGameHierarchy( const char *dir, uint flags )
// for example, czeror->czero->cstrike->valve // for example, czeror->czero->cstrike->valve
for( i = 0; i < FI.numgames; i++ ) for( i = 0; i < FI.numgames; i++ )
{ {
if( !Q_strnicmp( FI.games[i]->gamefolder, dir, 64 )) if( !Q_stricmp( FI.games[i]->gamefolder, dir ))
{ {
dir = FI.games[i]->gamefolder; // fixup directory case
Con_Reportf( "FS_AddGameHierarchy: adding recursive basedir %s\n", FI.games[i]->basedir ); Con_Reportf( "FS_AddGameHierarchy: adding recursive basedir %s\n", FI.games[i]->basedir );
if( !FI.games[i]->added && Q_stricmp( FI.games[i]->gamefolder, FI.games[i]->basedir )) if( !FI.games[i]->added && Q_stricmp( FI.games[i]->gamefolder, FI.games[i]->basedir ))
{ {