// COMMANDLINEOPTION: Server: -listen [playerlimit] starts a multiplayer server with graphical client, like singleplayer but other players can connect, default playerlimit is 8
// if no client is in the executable or -dedicated is specified on
// commandline, start a dedicated server
+#ifdef CONFIG_CLIENT
i = COM_CheckParm ("-dedicated");
- if (i || !cl_available)
+ if (i)
{
+#endif
cls.state = ca_dedicated;
// check for -dedicated specifying how many players
if (i && i + 1 < com_argc && atoi (com_argv[i+1]) >= 1)
Con_Printf ("Only one of -dedicated or -listen can be specified\n");
// default sv_public on for dedicated servers (often hosted by serious administrators), off for listen servers (often hosted by clueless users)
Cvar_SetValue("sv_public", 1);
+#ifdef CONFIG_CLIENT
}
- else if (cl_available)
+ else
{
// client exists and not dedicated, check if -listen is specified
cls.state = ca_disconnected;
svs.maxclients = 1;
}
}
+#endif
svs.maxclients = svs.maxclients_next = bound(1, svs.maxclients, MAX_SCOREBOARD);
#define ENGINE_ICON ( (gamemode == GAME_NEXUIZ) ? nexuiz_xpm : darkplaces_xpm )
-extern int cl_available;
-
#define MAX_TEXTUREUNITS 16
typedef enum renderpath_e
#define kCGLCEMPEngine 313
#endif
-// Tell startup code that we have a client
-int cl_available = true;
-
qboolean vid_supportrefreshrate = true;
// AGL prototypes
#include "nexuiz.xpm"
#include "darkplaces.xpm"
-// Tell startup code that we have a client
-int cl_available = true;
-
// note: if we used the XRandR extension we could support refresh rates
qboolean vid_supportrefreshrate = false;
#include "quakedef.h"
-#include <signal.h>
-
-int cl_available = false;
-
-qboolean vid_supportrefreshrate = false;
-
void VID_Shutdown(void)
{
}
-static void signal_handler(int sig)
-{
- Con_Printf("Received signal %d, exiting...\n", sig);
- Sys_Quit(1);
-}
-
-static void InitSig(void)
-{
-#ifndef WIN32
- signal(SIGHUP, signal_handler);
- signal(SIGINT, signal_handler);
- signal(SIGQUIT, signal_handler);
- signal(SIGILL, signal_handler);
- signal(SIGTRAP, signal_handler);
- signal(SIGIOT, signal_handler);
- signal(SIGBUS, signal_handler);
- signal(SIGFPE, signal_handler);
- signal(SIGSEGV, signal_handler);
- signal(SIGTERM, signal_handler);
-#endif
-}
-
void VID_SetMouse (qboolean fullscreengrab, qboolean relative, qboolean hidecursor)
{
}
return FALSE;
}
-void VID_Init(void)
-{
- InitSig(); // trap evil signals
-}
-
qboolean VID_InitMode(viddef_mode_t *mode)
{
return false;
void IN_Move(void)
{
}
-
-size_t VID_ListModes(vid_mode_t *modes, size_t maxcount)
-{
- return 0;
-}
#define SDL_R_RESTART
#endif
-// Tell startup code that we have a client
-int cl_available = true;
-
qboolean vid_supportrefreshrate = false;
static qboolean vid_usingmouse = false;
#define WM_MOUSEWHEEL 0x020A
#endif
-// Tell startup code that we have a client
-int cl_available = true;
-
qboolean vid_supportrefreshrate = true;
static int (WINAPI *qwglChoosePixelFormat)(HDC, CONST PIXELFORMATDESCRIPTOR *);