From 8eecc029568bbe8e2f3c0d9af218ad3f957251c9 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 27 Dec 2021 03:14:47 +0000 Subject: Add custom demo packet stuff This is more old code that wasn't part of the initial release. Figure I might as well throw it in for later. --- src/sst.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sst.c') diff --git a/src/sst.c b/src/sst.c index 183a73a..176d5fb 100644 --- a/src/sst.c +++ b/src/sst.c @@ -68,6 +68,7 @@ ifacefactory factory_client = 0, factory_server = 0, factory_engine = 0; // plonking ~~some bools~~ one bool here and worrying about it later. :^) static bool has_autojump = false; static bool has_demorec = false; +static bool has_demorec_custom = false; // HACK: later versions of L4D2 show an annoying dialog on every plugin_load. // We can suppress this by catching the message string that's passed from @@ -126,6 +127,7 @@ static bool do_load(ifacefactory enginef, ifacefactory serverf) { nc: gamedata_init(); has_autojump = autojump_init(); has_demorec = demorec_init(); + if (has_demorec) has_demorec_custom = demorec_custom_init(); fixes_apply(); // NOTE: this is technically redundant for early versions but I CBA writing -- cgit v1.2.3