Changed VBSP to check the MOD directory for FGD files specified in gameinfo.txt, in addition to EXECUTABLE_PATH.

This commit is contained in:
Alan Edwardes 2013-08-05 15:47:51 +01:00
parent 61abd8d989
commit 1caf4feb1a

View file

@ -2002,12 +2002,15 @@ void CMapFile::CheckForInstances( const char *pszFileName )
char FDGPath[ MAX_PATH ];
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "EXECUTABLE_PATH", FDGPath, sizeof( FDGPath ) ) )
{
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "MOD", FDGPath, sizeof( FDGPath ) ) )
{
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "", FDGPath, sizeof( FDGPath ) ) )
{
Msg( "Could not locate GameData file %s\n", GameDataFile );
}
}
}
GD.Load( FDGPath );