]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.h
Merge the sendcvar command into one. Call the old functions using hooks.
[xonotic/darkplaces.git] / host.h
diff --git a/host.h b/host.h
index 9def0939602ac3062f76b1f564acb33a9d6df8c5..0fcbb71427b1dd3890ee7f35eedf3901077ff476 100644 (file)
--- a/host.h
+++ b/host.h
@@ -6,6 +6,8 @@
 #include "qdefs.h"
 #include "cmd.h"
 
+struct cmd_state_s;
+
 typedef enum host_state_e
 {
        host_shutdown,
@@ -33,6 +35,8 @@ typedef struct host_s
                void (*ToggleMenu)(void);
                qbool (*CL_Intermission)(void); // Quake compatibility
                qbool (*SV_CanSave)(void); // Quake compatibility
+               void (*CL_SendCvar)(struct cmd_state_s *);
+               void (*SV_SendCvar)(struct cmd_state_s *);
        } hook;
 } host_t;