fs_game adjustment

This commit is contained in:
unknown 2012-07-06 16:07:29 +02:00
parent 1fe1561696
commit 781ae4561e
4 changed files with 6 additions and 6 deletions

View file

@ -435,7 +435,7 @@ void CL_SystemInfoChanged( void ) {
}
// if game folder should not be set and it is set at the client side
if ( !gameSet && *Cvar_VariableString("fs_game") ) {
Cvar_Set( "fs_game", "" );
Cvar_Set( "fs_game", "rpgxEF" );
}
cl_connectedToPureServer = Cvar_VariableValue( "sv_pure" );
}

View file

@ -657,7 +657,7 @@ CLUI_SetCDKey
#ifndef STANDALONE
static void CLUI_SetCDKey( char *buf ) {
cvar_t *fs;
fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
fs = Cvar_Get ("fs_game", "rpgxEF", CVAR_INIT|CVAR_SYSTEMINFO );
if (UI_usesUniqueCDKey() && fs && fs->string[0] != 0) {
Com_Memcpy( &cl_cdkey[16], buf, 16 );
cl_cdkey[32] = 0;

View file

@ -3175,7 +3175,7 @@ static void FS_Startup( const char *gameName )
homePath = fs_basepath->string;
}
fs_homepath = Cvar_Get ("fs_homepath", homePath, CVAR_INIT|CVAR_PROTECTED );
fs_gamedirvar = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
fs_gamedirvar = Cvar_Get ("fs_game", "rpgxEF", CVAR_INIT|CVAR_SYSTEMINFO );
// add search path elements in reverse priority order
if (fs_basepath->string[0]) {
@ -3222,7 +3222,7 @@ static void FS_Startup( const char *gameName )
cvar_t *fs;
Com_ReadCDKey(BASEGAME);
fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
fs = Cvar_Get ("fs_game", "rgpxEF", CVAR_INIT|CVAR_SYSTEMINFO );
if (fs && fs->string[0] != 0) {
Com_AppendCDKey( fs->string );
}
@ -3937,7 +3937,7 @@ void FS_InitFilesystem( void ) {
Com_StartupVariable("fs_game");
if(!FS_FilenameCompare(Cvar_VariableString("fs_game"), com_basegame->string))
Cvar_Set("fs_game", "");
Cvar_Set("fs_game", "rpgxEF");
// try to start up normally
FS_Startup(com_basegame->string);

View file

@ -3341,7 +3341,7 @@ static void UI_RunMenuScript(char **args) {
} else if (Q_stricmp(name, "RunDemo") == 0) {
trap_Cmd_ExecuteText( EXEC_APPEND, va("demo %s\n", uiInfo.demoList[uiInfo.demoIndex]));
} else if (Q_stricmp(name, "Quake3") == 0) {
trap_Cvar_Set( "fs_game", "");
trap_Cvar_Set( "fs_game", "rpgxEF");
trap_Cmd_ExecuteText( EXEC_APPEND, "vid_restart;" );
} else if (Q_stricmp(name, "closeJoin") == 0) {
if (uiInfo.serverStatus.refreshActive) {