diff options
| author | 2026-04-03 21:45:17 +0100 | |
|---|---|---|
| committer | 2026-04-04 01:37:54 +0100 | |
| commit | 2ee93c3f46f8e948d2331eab46c95322a88874ee (patch) | |
| tree | b3a39f8e79ef725579b569748ac4be28b82b1266 /src/sst.c | |
| parent | e174011b5e7390dc8714910185aaa40d0a44702f (diff) | |
| download | sst-2ee93c3f46f8e948d2331eab46c95322a88874ee.tar.gz sst-2ee93c3f46f8e948d2331eab46c95322a88874ee.zip | |
Size-optimise cvar value cleanup
Put all the cvars together contiguously; then we don't need to generate
lots of individual calls to extfree() and can instead simply iterate a
fixed-sized array.
Diffstat (limited to 'src/sst.c')
| -rw-r--r-- | src/sst.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -14,8 +14,6 @@ * PERFORMANCE OF THIS SOFTWARE. */ -#include <string.h> - #ifdef _WIN32 #include <Windows.h> #include <shlwapi.h> @@ -28,7 +26,6 @@ #include "engineapi.h" #include "errmsg.h" #include "event.h" -#include "extmalloc.h" // for freevars() in generated code #include "feature.h" #include "fixes.h" #include "gamedata.h" @@ -543,7 +540,6 @@ static opt_small void hook_plugin_unload_cbv2(struct con_cmdargs *args) { static inline bool do_load(ifacefactory enginef, ifacefactory serverf) { factory_engine = enginef; factory_server = serverf; if_cold (!engineapi_init(ifacever)) return false; - if (GAMETYPE_MATCHES(OE)) shuntvars(); // see also comment in con_detect() const void **p = vtable_firstdiff; if (GAMETYPE_MATCHES(Portal2)) *p++ = (void *)&nop_p_v; // ClientFullyConnect *p++ = (void *)&nop_p_v; // ClientDisconnect @@ -598,7 +594,6 @@ static inline void do_unload() { } endfeatures(); con_disconnect(); - freevars(); } static bool VCALLCONV Load(void *this, ifacefactory enginef, |
