mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: check rodir too when checking falldir existence too, just in case
This commit is contained in:
@@ -912,9 +912,18 @@ static void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, cons
|
||||
}
|
||||
|
||||
// make sure what gamedir is really exist
|
||||
// a1ba: why we are doing this???
|
||||
Q_snprintf( token, sizeof( token ), "%s/%s", fs_rootdir, GameInfo->falldir );
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user