summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-09-27 11:36:43 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-09-27 11:36:43 +0000
commit5605c38c909aaa905684b79a48ccd0abb43dc685 (patch)
treef1e2b1ef297d0f0eae5a86284c5da7f0919643f3 /source/files.c
parentb26baea5a78c8d2487544e3f162d9e4da93121e9 (diff)
Use `sv_features', `g_features' and `fs_gamedir' cvars instead of environment
variables for communications between server and the game DLL. Fixed reverted `no PHS' check on sounds MVD client did.
Diffstat (limited to 'source/files.c')
-rw-r--r--source/files.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/files.c b/source/files.c
index 9bf7193..39d67bd 100644
--- a/source/files.c
+++ b/source/files.c
@@ -2433,7 +2433,7 @@ static void FS_DefaultGamedir( void ) {
Cvar_Set( "game", "" );
Cvar_Set( "gamedir", "" );
- Q_setenv( "QUAKE2_GAME_PATH", fs_gamedir );
+ Cvar_Set( "fs_gamedir", fs_gamedir );
}
@@ -2475,7 +2475,7 @@ static void FS_SetupGamedir( void ) {
FS_AddGameDirectory( FS_PATH_GAME, "%s/%s", sys_homedir->string, fs_game->string );
}
- Q_setenv( "QUAKE2_GAME_PATH", fs_gamedir );
+ Cvar_Set( "fs_gamedir", fs_gamedir );
}
qboolean FS_SafeToRestart( void ) {
@@ -2590,6 +2590,7 @@ void FS_Init( void ) {
fs_debug = Cvar_Get( "fs_debug", "0", 0 );
fs_restrict_mask = Cvar_Get( "fs_restrict_mask", "0", CVAR_NOSET );
+ Cvar_Get( "fs_gamedir", "", CVAR_ROM );
if( ( fs_restrict_mask->integer & 7 ) == 7 ) {
Com_WPrintf( "Invalid fs_restrict_mask value %d. "