mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-01-27 06:08:01 +03: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
b2215f2dbc
commit
38a9e52e61
@ -2002,12 +2002,15 @@ 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, "MOD", FDGPath, sizeof( FDGPath ) ) )
|
||||||
{
|
{
|
||||||
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "", FDGPath, sizeof( FDGPath ) ) )
|
if ( !g_pFullFileSystem->RelativePathToFullPath( GameDataFile, "", FDGPath, sizeof( FDGPath ) ) )
|
||||||
{
|
{
|
||||||
Msg( "Could not locate GameData file %s\n", GameDataFile );
|
Msg( "Could not locate GameData file %s\n", GameDataFile );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GD.Load( FDGPath );
|
GD.Load( FDGPath );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user