From 374c423719065b11a986d200d705df2b88977f9b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 21 May 2024 22:05:31 +0100 Subject: 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. --- src/sst.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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 + * Copyright © 2024 Michael Smith * * 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) {} -- cgit v1.2.3