]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
host: Move host cvar exports to host.h that don't belong in darkplaces.h
authorCloudwalk <cloudwalk@icculus.org>
Thu, 12 Oct 2023 16:44:55 +0000 (12:44 -0400)
committerCloudwalk <cloudwalk@icculus.org>
Thu, 12 Oct 2023 16:44:55 +0000 (12:44 -0400)
Signed-off-by: Cloudwalk <cloudwalk@icculus.org>
darkplaces.h
external/cmake [new submodule]
host.h

index 512de65f1198969020c34d9f2a1bdc9e05cdfc1c..0d04dd45eca661bb1e546de1850424f7ad96c749 100644 (file)
@@ -58,13 +58,4 @@ extern char engineversion[128];
 #include "mathlib.h"
 #include "matrixlib.h"
 
-extern cvar_t developer;
-extern cvar_t developer_entityparsing;
-extern cvar_t developer_extra;
-extern cvar_t developer_insane;
-extern cvar_t developer_loadfile;
-extern cvar_t developer_loading;
-extern cvar_t host_isclient;
-extern cvar_t sessionid;
-
 #endif
diff --git a/external/cmake b/external/cmake
new file mode 160000 (submodule)
index 0000000..7612abd
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 7612abd52f192a13848a4d74191633a008892449
diff --git a/host.h b/host.h
index 6c4f5f60da74afac5b1426fa0ea9d96b0543572a..61182b5242c1140449824f6488854c03f3c4a780 100644 (file)
--- a/host.h
+++ b/host.h
@@ -5,6 +5,16 @@
 #include "qtypes.h"
 #include "qdefs.h"
 #include "cmd.h"
+#include "cvar.h"
+
+extern cvar_t developer;
+extern cvar_t developer_entityparsing;
+extern cvar_t developer_extra;
+extern cvar_t developer_insane;
+extern cvar_t developer_loadfile;
+extern cvar_t developer_loading;
+extern cvar_t host_isclient;
+extern cvar_t sessionid;
 
 struct cmd_state_s;