mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-27 23:35:30 +03:00
Merge pull request #147 from alanedwardes/vbsp-fixes
Changed VBSP to check both the EXECUTABLE_PATH and the MOD path for FDG files.
This commit is contained in:
commit
45cc6eccbc
@ -2003,7 +2003,7 @@ 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, NULL, FDGPath, sizeof( FDGPath ) ) )
|
||||||
{
|
{
|
||||||
Msg( "Could not locate GameData file %s\n", GameDataFile );
|
Msg( "Could not locate GameData file %s\n", GameDataFile );
|
||||||
}
|
}
|
||||||
|
@ -2003,7 +2003,7 @@ 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, NULL, 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