From 8c8680ad112f3ad1360aa5547392119ed4de6581 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 16 Jul 2022 16:37:25 +0100 Subject: Add keybind lookup code Also centralise NEXT_INSN macro, into its own header at least for now. --- src/sst.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sst.c') diff --git a/src/sst.c b/src/sst.c index 1321d03..93908dc 100644 --- a/src/sst.c +++ b/src/sst.c @@ -22,6 +22,7 @@ #endif #include "ac.h" +#include "bind.h" #include "alias.h" #include "autojump.h" #include "con_.h" @@ -190,7 +191,7 @@ static const void *const *const plugin_obj; // figures out the dependencies at build time and generates all the init glue // but we want to actually release the plugin this decade so for now I'm just // plonking some bools here and worrying about it later. :^) -static bool has_ac = false, has_autojump = false, has_demorec = false, +static bool has_ac = false, has_autojump = false, has_demorec = false, has_fov = false, has_nosleep = false, has_portalcolours = false; #ifdef _WIN32 static bool has_rinput = false; @@ -206,6 +207,7 @@ static const char *updatenotes = "\ "; static void do_featureinit(void) { + bool has_bind = bind_init(); has_ac = ac_init(); bool has_alias = alias_init(); has_autojump = autojump_init(); -- cgit v1.2.3