diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-04-10 15:37:25 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-04-10 15:37:25 +0000 |
commit | ce41605441c55110aa523250987b50235261a6f6 (patch) | |
tree | 9a71b593f93e5ba817a94d40a3a04c0ec379b3d4 /code/client | |
parent | 92f7f50f61dffdfa44d4908f7dc662eee9eedcdf (diff) | |
download | ioquake3-aero-ce41605441c55110aa523250987b50235261a6f6.tar.gz ioquake3-aero-ce41605441c55110aa523250987b50235261a6f6.zip |
Add com_standalone cvar for at-runtime handling of mods that do not require the original quake3 game data.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1309 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client')
-rw-r--r-- | code/client/cl_main.c | 7 | ||||
-rw-r--r-- | code/client/cl_ui.c | 9 | ||||
-rw-r--r-- | code/client/client.h | 2 |
3 files changed, 13 insertions, 5 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 8df950b..589907d 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -1712,9 +1712,8 @@ void CL_CheckForResend( void ) { case CA_CONNECTING: // requesting a challenge .. IPv6 users always get in as authorize server supports no ipv6. #ifndef STANDALONE - if ( clc.serverAddress.type == NA_IP && !Sys_IsLANAddress( clc.serverAddress ) ) { + if (!Cvar_VariableIntegerValue("com_standalone") && clc.serverAddress.type == NA_IP && !Sys_IsLANAddress( clc.serverAddress ) ) CL_RequestAuthorization(); - } #endif NET_OutOfBandPrint(NS_CLIENT, clc.serverAddress, "getchallenge"); break; @@ -3695,6 +3694,7 @@ void CL_ShowIP_f(void) { Sys_ShowIP(); } +#ifndef STANDALONE /* ================= bool CL_CDKeyValidate @@ -3758,5 +3758,4 @@ qboolean CL_CDKeyValidate( const char *key, const char *checksum ) { return qfalse; } - - +#endif diff --git a/code/client/cl_ui.c b/code/client/cl_ui.c index 0ca9943..a4d813a 100644 --- a/code/client/cl_ui.c +++ b/code/client/cl_ui.c @@ -667,6 +667,7 @@ static void Key_GetBindingBuf( int keynum, char *buf, int buflen ) { CLUI_GetCDKey ==================== */ +#ifndef STANDALONE static void CLUI_GetCDKey( char *buf, int buflen ) { cvar_t *fs; fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO ); @@ -699,6 +700,7 @@ static void CLUI_SetCDKey( char *buf ) { cvar_modifiedFlags |= CVAR_ARCHIVE; } } +#endif /* ==================== @@ -1005,6 +1007,7 @@ intptr_t CL_UISystemCalls( intptr_t *args ) { case UI_MEMORY_REMAINING: return Hunk_MemoryRemaining(); +#ifndef STANDALONE case UI_GET_CDKEY: CLUI_GetCDKey( VMA(1), args[2] ); return 0; @@ -1012,6 +1015,7 @@ intptr_t CL_UISystemCalls( intptr_t *args ) { case UI_SET_CDKEY: CLUI_SetCDKey( VMA(1) ); return 0; +#endif case UI_SET_PBCLSTATUS: return 0; @@ -1093,9 +1097,10 @@ intptr_t CL_UISystemCalls( intptr_t *args ) { re.RemapShader( VMA(1), VMA(2), VMA(3) ); return 0; +#ifndef STANDALONE case UI_VERIFY_CDKEY: return CL_CDKeyValidate(VMA(1), VMA(2)); - +#endif default: @@ -1167,6 +1172,7 @@ void CL_InitUI( void ) { Cvar_SetCheatState(); } +#ifndef STANDALONE qboolean UI_usesUniqueCDKey( void ) { if (uivm) { return (VM_Call( uivm, UI_HASUNIQUECDKEY) == qtrue); @@ -1174,6 +1180,7 @@ qboolean UI_usesUniqueCDKey( void ) { return qfalse; } } +#endif /* ==================== diff --git a/code/client/client.h b/code/client/client.h index b68b518..7a0bd53 100644 --- a/code/client/client.h +++ b/code/client/client.h @@ -409,7 +409,9 @@ int CL_GetPingQueueCount( void ); void CL_ShutdownRef( void ); void CL_InitRef( void ); +#ifndef STANDALONE qboolean CL_CDKeyValidate( const char *key, const char *checksum ); +#endif int CL_ServerStatus( char *serverAddress, char *serverStatusString, int maxLen ); qboolean CL_CheckPaused(void); |