From a0138ff3772e71f338d04668076ec1eb9d44f8f4 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 12 May 2022 16:17:42 +0100 Subject: Further clean up engine API initialisation --- src/engineapi.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/engineapi.h') diff --git a/src/engineapi.h b/src/engineapi.h index 6def65b..fc191ca 100644 --- a/src/engineapi.h +++ b/src/engineapi.h @@ -127,13 +127,14 @@ extern void *globalvars; /* * Called on plugin init to attempt to initialise various core interfaces. - * Doesn't return an error result, because the plugin can still load even if - * this stuff is missing. + * This includes console/cvar initialisation and populating gametype and + * gamedata values. * - * Also performs additional gametype detection after con_init(), and calls - * gamedata_init() to setup offsets and such. + * Returns true if there is enough stuff in place for the plugin to function - + * there may still be stuff missing. Returns false if there's no way the plugin + * can possibly work, e.g. if there's no cvar interface. */ -void engineapi_init(void); +bool engineapi_init(int pluginver); #endif -- cgit v1.2.3