mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 19:30:08 +01:00
filesystem: check rodir too when checking falldir existence too, just in case
This commit is contained in:
parent
d114dffcb4
commit
3a67aefee2
@ -912,9 +912,18 @@ static void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, cons
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make sure what gamedir is really exist
|
// make sure what gamedir is really exist
|
||||||
|
// a1ba: why we are doing this???
|
||||||
Q_snprintf( token, sizeof( token ), "%s/%s", fs_rootdir, GameInfo->falldir );
|
Q_snprintf( token, sizeof( token ), "%s/%s", fs_rootdir, GameInfo->falldir );
|
||||||
if( !FS_SysFolderExists( token ))
|
if( !FS_SysFolderExists( token ))
|
||||||
GameInfo->falldir[0] = '\0';
|
{
|
||||||
|
if( COM_CheckStringEmpty( fs_rodir ))
|
||||||
|
{
|
||||||
|
Q_snprintf( token, sizeof( token ), "%s/%s", fs_rodir, GameInfo->falldir );
|
||||||
|
if( !FS_SysFolderExists( token ))
|
||||||
|
GameInfo->falldir[0] = 0;
|
||||||
|
}
|
||||||
|
else GameInfo->falldir[0] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user