summaryrefslogtreecommitdiff
path: root/src/con_.h
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-11-28 22:28:17 +0000
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-11-28 22:30:55 +0000
commit3e057a6365ba6793531ba2930aa53453ee3f0d8e (patch)
tree119256814db9acb54bfdf81f9ec8cc94dab05d45 /src/con_.h
parent8bed97cda76655c49fb80b604203ec572b2bf59e (diff)
downloadsst-3e057a6365ba6793531ba2930aa53453ee3f0d8e.tar.gz
sst-3e057a6365ba6793531ba2930aa53453ee3f0d8e.zip
Fix sst_mouse_factor always being hidden
Kind of unpleasant and probably something to revisit at some point to see if there's a more straightforward approach we can come up with.
Diffstat (limited to 'src/con_.h')
-rw-r--r--src/con_.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/con_.h b/src/con_.h
index a10488b..8bef5d0 100644
--- a/src/con_.h
+++ b/src/con_.h
@@ -464,6 +464,12 @@ void con_regcmd(struct con_cmd *c);
* doing so. In practice this means anything that's not OE. On OE, these
* functions currently just do nothing, although it would be possible in theory
* to patch in command-hiding support if deemed important enough.
+ *
+ * Note: con_hide() will not work on an unregistered command or variable with
+ * CON_INIT_HIDDEN; this includes any of a feature's commands/variables during
+ * feature initialisation, except those that are manually registered first.
+ * In cases where a variable/command is to be registered automatically, the
+ * CON_INIT_HIDDEN flag can be removed using bitwise ops.
*/
void con_hide(struct con_cmdbase *b);
void con_unhide(struct con_cmdbase *b);