summaryrefslogtreecommitdiffhomepage
path: root/src/sst.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2024-05-21 22:05:31 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2024-05-21 22:36:32 +0100
commit374c423719065b11a986d200d705df2b88977f9b (patch)
tree50733270ec1eae26799c0182cf395845efe5cda0 /src/sst.c
parent29389a446859d0d92145ecb395a3b4bff2e0f8be (diff)
Add temporary plugin version identifier to demos
I've resisted doing this for a long time but it's getting to the point where blocking a release indefinitely is a real problem, and this satisfies the original request from some leaderboard people to just make SST identifiable in some way or another. It means the demo stuff can happen at whatever pace it happens at and other stuff can happen independently. Less stress and sadness. Of course, it'll only be kept in as long as required, but there'll be no rush to get rid of it for any particular release either.
Diffstat (limited to 'src/sst.c')
-rw-r--r--src/sst.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/sst.c b/src/sst.c
index 7dd5839..fc9f0ff 100644
--- a/src/sst.c
+++ b/src/sst.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -220,6 +220,16 @@ DEF_CCMD_HERE(sst_printversion, "Display plugin version information", 0) {
con_msg("v" VERSION "\n");
}
+// ugly temporary hack until demo verification things are fleshed out: let
+// interested parties identify the version of SST used by just writing a dummy
+// cvar to the top of the demo. this will be removed later, once there's a less
+// stupid way of achieving the same goal.
+#if VERSION_MAJOR != 0 || VERSION_MINOR != 6
+#error Need to change this manually, since codegen requires it to be spelled \
+out in DEF_CVAR - better yet, can we get rid of this yet?
+#endif
+DEF_CVAR(__sst_0_6_beta, "", 0, CON_HIDDEN | CON_DEMO)
+
// most plugin callbacks are unused - define dummy functions for each signature
static void VCALLCONV nop_v_v(void *this) {}
static void VCALLCONV nop_p_v(void *this, void *p) {}