]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
host: Implement a hook struct in host_t. Use a hook to connect to local server
[xonotic/darkplaces.git] / quakedef.h
index 8c0ba38c60c230aed1f1cd0be0fbe3a6ff776c32..41c91c9644a1c5fde554db33c3c8d42fff4a1f7a 100644 (file)
@@ -549,6 +549,11 @@ typedef struct host_s
        qboolean restless; // don't sleep
        qboolean paused; // global paused state, pauses both client and server
        cbuf_t *cbuf;
+
+       struct
+       {
+               void (*ConnectLocal)(void);
+       } hook;
 } host_t;
 
 extern host_t host;