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:
parent
36ff819daf
commit
788bc820c8
@ -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 ))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user