mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-12-26 14:55:34 +03:00
VBSP now checks all search paths for an FGD file.
This commit is contained in:
parent
137582c2b9
commit
0c87302844
@ -2003,12 +2003,9 @@ 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, NULL, 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 );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2003,12 +2003,9 @@ 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, NULL, 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 );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user