Xash3D FWGS engine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

261 lines
3.0 KiB

7 years ago
/*
dedicated.c - stubs for dedicated server
Copyright (C) 2018 a1batross, mittorn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#if XASH_DEDICATED
7 years ago
#include "common.h"
#include "xash3d_mathlib.h"
#include "ref_api.h"
ref_globals_t refState;
7 years ago
void CL_ProcessFile( qboolean successfully_received, const char *filename )
{
}
int GAME_EXPORT CL_Active( void )
7 years ago
{
return false;
}
qboolean CL_Initialized( void )
{
return false;
}
qboolean CL_IsInGame( void )
{
return true; // always active for dedicated servers
}
qboolean CL_IsInMenu( void )
{
return false;
}
qboolean CL_IsInConsole( void )
{
return false;
}
qboolean CL_IsIntermission( void )
{
return false;
}
qboolean CL_IsPlaybackDemo( void )
{
return false;
}
qboolean CL_IsRecordDemo( void )
{
return false;
}
qboolean CL_DisableVisibility( void )
{
return false;
}
void CL_Init( void )
7 years ago
{
}
void Key_Init( void )
7 years ago
{
}
void IN_Init( void )
7 years ago
{
}
void CL_Drop( void )
7 years ago
{
}
void CL_ClearEdicts( void )
7 years ago
{
}
void GAME_EXPORT Key_SetKeyDest(int key_dest)
7 years ago
{
}
void UI_SetActiveMenu( qboolean fActive )
{
}
void CL_WriteMessageHistory( void )
7 years ago
{
}
void Host_ClientBegin( void )
7 years ago
{
Cbuf_Execute();
7 years ago
}
void Host_ClientFrame( void )
7 years ago
{
}
void Host_InputFrame( void )
7 years ago
{
}
void VID_InitDefaultResolution( void )
7 years ago
{
7 years ago
}
void Con_Init( void )
7 years ago
{
7 years ago
}
void R_ClearAllDecals( void )
7 years ago
{
}
int R_CreateDecalList( struct decallist_s *pList )
{
return 0;
}
void GAME_EXPORT S_StopSound(int entnum, int channel, const char *soundname)
7 years ago
{
}
int S_GetCurrentStaticSounds( soundlist_t *pout, int size )
{
return 0;
}
int GAME_EXPORT CL_GetMaxClients( void )
7 years ago
{
return 0;
}
void IN_TouchInitConfig( void )
7 years ago
{
}
void CL_Disconnect( void )
7 years ago
{
}
void CL_Shutdown( void )
7 years ago
{
}
void R_ClearStaticEntities( void )
7 years ago
{
}
void Host_Credits( void )
7 years ago
{
}
qboolean UI_CreditsActive( void )
7 years ago
{
return false;
}
void S_StopBackgroundTrack( void )
7 years ago
{
}
void SCR_BeginLoadingPlaque( qboolean is_background )
{
}
int S_GetCurrentDynamicSounds( soundlist_t *pout, int size )
{
return 0;
}
void S_StopAllSounds( qboolean ambient )
{
}
void GAME_EXPORT Con_NPrintf( int idx, const char *fmt, ... )
7 years ago
{
}
void GAME_EXPORT Con_NXPrintf( struct con_nprint_s *info, const char *fmt, ... )
7 years ago
{
}
void SCR_CheckStartupVids( void )
7 years ago
{
}
void CL_StopPlayback( void )
{
7 years ago
}
void CL_ClearStaticEntities( void )
{
7 years ago
}
void UI_ShowConnectionWarning( void )
{
}
void CL_Crashed( void )
{
}
void CL_HudMessage( const char *pMessage )
{
}
byte TextureToGamma( byte b )
{
return b;
}
byte LightToTexGamma( byte b )
{
return b;
}
#endif // XASH_DEDICATED