21typedef enum host_state_e
41typedef struct host_static_s
void Host_LockSession(void)
void Host_UpdateVersion(void)
void Host_AbortCurrentFrame(void)
void Host_UnlockSession(void)
cvar_t developer_loadfile
cvar_t developer_entityparsing
void Host_SaveConfig(const char *file)
double Host_Frame(double time)
@ host_failed
crashed or aborted, SDL dialog open
@ host_failing
crashing (inside crash handler)
@ host_shutdown
states >= host_shutdown cause graceful shutdown, see Sys_HandleCrash() comments
static const char *const host_state_str[]
void Host_Error(const char *error,...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN
#define DP_FUNC_PRINTF(n)
double sleeptime
time spent sleeping after the last frame
qbool restless
don't sleep
double dirtytime
the main loop wall time for this frame, equal to Sys_DirtyTime() at the start of this host frame
void(* CL_SendCvar)(struct cmd_state_s *)
void(* SV_Shutdown)(void)
void(* ConnectLocal)(void)
void(* SV_SendCvar)(struct cmd_state_s *)
unsigned int framecount
incremented every frame, never reset, >0 means Host_AbortCurrentFrame() is possible
double realtime
the accumulated mainloop time since application started (with filtering), without any slowmo or clamp...
qbool paused
global paused state, pauses both client and server
void(* Disconnect)(qbool, const char *,...)