diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-07-02 21:51:50 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-07-23 18:51:28 +0100 |
commit | 5b8d37094a38aff1b2669056a4011a42450fd9c5 (patch) | |
tree | 0e67c30227d4368834df94be42fef645186267c6 /src/sst.c | |
parent | e3fd5ad05a7d933d401de431ce2d27a99d3b9995 (diff) |
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. :^)
Diffstat (limited to 'src/sst.c')
-rw-r--r-- | src/sst.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -21,6 +21,8 @@ #include <shlwapi.h> #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 |