Fix banfile writing to wrong game directory
This commit is contained in:
parent
3148416c04
commit
0eb5d1720c
3 changed files with 14 additions and 13 deletions
|
@ -3025,10 +3025,7 @@ static void FS_CheckPak0( void )
|
|||
}
|
||||
}
|
||||
|
||||
if(com_basegame->string[0] &&
|
||||
Q_stricmp(com_basegame->string, BASEGAME) &&
|
||||
!foundPak && !foundTA
|
||||
)
|
||||
if(!foundPak && !foundTA && Q_stricmp(com_basegame->string, BASEGAME))
|
||||
{
|
||||
Cvar_Set("com_standalone", "1");
|
||||
}
|
||||
|
@ -3660,3 +3657,11 @@ void FS_FilenameCompletion( const char *dir, const char *ext,
|
|||
}
|
||||
FS_FreeFileList( filenames );
|
||||
}
|
||||
|
||||
const char *FS_GetCurrentGameDir(void)
|
||||
{
|
||||
if(fs_gamedirvar->string[0])
|
||||
return fs_gamedirvar->string;
|
||||
|
||||
return com_basegame->string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue