diff options
| author | Alan Edwardes <[email protected]> | 2013-08-05 15:46:31 +0100 |
|---|---|---|
| committer | Alan Edwardes <[email protected]> | 2013-08-05 19:14:16 +0100 |
| commit | 38a9e52e616c7e7e1c7fd38acb033057cdc344c8 (patch) | |
| tree | dc538ac09531b5c4f91fd41450ffb99df3ea2bc7 /sp/src/utils/vbsp/map.cpp | |
| parent | Added all the ep2 strings to their string tables to match the way the game lo... (diff) | |
| download | source-sdk-2013-38a9e52e616c7e7e1c7fd38acb033057cdc344c8.tar.xz source-sdk-2013-38a9e52e616c7e7e1c7fd38acb033057cdc344c8.zip | |
Changed VBSP to check the MOD directory for FGD files specified in gameinfo.txt, in addition to EXECUTABLE_PATH.
Diffstat (limited to 'sp/src/utils/vbsp/map.cpp')
| -rw-r--r-- | sp/src/utils/vbsp/map.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sp/src/utils/vbsp/map.cpp b/sp/src/utils/vbsp/map.cpp index 34219bd4..bbab291e 100644 --- a/sp/src/utils/vbsp/map.cpp +++ b/sp/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 );
+ }
}
}
|