mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-11-23 20:32:21 +00:00
Changed VBSP to check the MOD directory for FGD files specified in gameinfo.txt, in addition to EXECUTABLE_PATH.
This commit is contained in:
parent
38a9e52e61
commit
137582c2b9
1 changed files with 5 additions and 2 deletions
|
@ -2003,9 +2003,12 @@ void CMapFile::CheckForInstances( const char *pszFileName )
|
||||||
char FDGPath[ MAX_PATH ];
|
char FDGPath[ MAX_PATH ];
|
||||||
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "EXECUTABLE_PATH", FDGPath, sizeof( FDGPath ) ) )
|
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "EXECUTABLE_PATH", FDGPath, sizeof( FDGPath ) ) )
|
||||||
{
|
{
|
||||||
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "", FDGPath, sizeof( FDGPath ) ) )
|
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "MOD", FDGPath, sizeof( FDGPath ) ) )
|
||||||
{
|
{
|
||||||
Msg( "Could not locate GameData file %s\n", GameDataFile );
|
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "", FDGPath, sizeof( FDGPath ) ) )
|
||||||
|
{
|
||||||
|
Msg( "Could not locate GameData file %s\n", GameDataFile );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue