From 5b8d37094a38aff1b2669056a4011a42450fd9c5 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 2 Jul 2022 21:51:50 +0100 Subject: Add alias management plus input filtering skeleton Some of the alias stuff was kind of stolen from earlier figuring-out Bill did. More Bill code is also on the way. :^) --- src/sst.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/sst.c') diff --git a/src/sst.c b/src/sst.c index b7298ef..1321d03 100644 --- a/src/sst.c +++ b/src/sst.c @@ -21,6 +21,8 @@ #include #endif +#include "ac.h" +#include "alias.h" #include "autojump.h" #include "con_.h" #include "demorec.h" @@ -188,8 +190,8 @@ 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_autojump = false, has_demorec = false, has_fov = false, - has_nosleep = false, has_portalcolours = 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; #endif @@ -204,6 +206,8 @@ static const char *updatenotes = "\ "; static void do_featureinit(void) { + has_ac = ac_init(); + bool has_alias = alias_init(); has_autojump = autojump_init(); has_demorec = demorec_init(); // not enabling demorec_custom yet - kind of incomplete and currently unused @@ -409,6 +413,7 @@ static void do_unload(void) { } #endif + if (has_ac) ac_end(); if (has_autojump) autojump_end(); if (has_demorec) demorec_end(); if (has_fov) fov_end(); // dep on ent -- cgit v1.2.3