diff options
| author | Alan Edwardes <[email protected]> | 2013-08-05 15:47:51 +0100 |
|---|---|---|
| committer | Alan Edwardes <[email protected]> | 2013-08-05 19:14:22 +0100 |
| commit | 137582c2b9930c48744d791418e7400b1fc3423a (patch) | |
| tree | 5568268904d7767e72b9ac0af49bac9e0c358384 /mp/src/utils/vbsp/map.cpp | |
| parent | Changed VBSP to check the MOD directory for FGD files specified in gameinfo.t... (diff) | |
| download | source-sdk-2013-137582c2b9930c48744d791418e7400b1fc3423a.tar.xz source-sdk-2013-137582c2b9930c48744d791418e7400b1fc3423a.zip | |
Changed VBSP to check the MOD directory for FGD files specified in gameinfo.txt, in addition to EXECUTABLE_PATH.
Diffstat (limited to 'mp/src/utils/vbsp/map.cpp')
| -rw-r--r-- | mp/src/utils/vbsp/map.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mp/src/utils/vbsp/map.cpp b/mp/src/utils/vbsp/map.cpp index 34219bd4..bbab291e 100644 --- a/mp/src/utils/vbsp/map.cpp +++ b/mp/src/utils/vbsp/map.cpp @@ -2003,9 +2003,12 @@ 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, "", 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 );
+ }
}
}
|