11 typedef enum host_state_e
23 int framecount; // incremented every frame, never reset (checked by Host_Error and Host_SaveConfig_f)
24 double realtime; // the accumulated mainloop time since application started (with filtering), without any slowmo or clamping
25 double dirtytime; // the main loop wall time for this frame, equal to Sys_DirtyTime() at the start of this host frame
26 double sleeptime; // time spent sleeping overall
27 qbool restless; // don't sleep
28 qbool paused; // global paused state, pauses both client and server
33 void (*ConnectLocal)(void);
34 void (*Disconnect)(void);
35 void (*ToggleMenu)(void);
36 qbool (*CL_Intermission)(void); // Quake compatibility
37 qbool (*SV_CanSave)(void); // Quake compatibility
38 void (*CL_SendCvar)(struct cmd_state_s *);
39 void (*SV_SendCvar)(struct cmd_state_s *);
45 void Host_InitCommands(void);
47 double Host_Frame(double time);
48 void Host_Shutdown(void);
49 void Host_Error(const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN;
50 void Host_LockSession(void);
51 void Host_UnlockSession(void);
52 void Host_AbortCurrentFrame(void);
53 void Host_SaveConfig(void);
54 void Host_LoadConfig_f(cmd_state_t *cmd);
55 void Host_NoOperation_f(cmd_state_t *cmd);