summaryrefslogtreecommitdiffhomepage
path: root/src/engineapi.h
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-12 16:17:42 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-12 16:37:10 +0100
commita0138ff3772e71f338d04668076ec1eb9d44f8f4 (patch)
tree60a2a98f841c905ee351b4458c4848f12d372456 /src/engineapi.h
parent452c12403abc521a809aebdd0ef5409146bb3256 (diff)
Further clean up engine API initialisation
Diffstat (limited to 'src/engineapi.h')
-rw-r--r--src/engineapi.h11
1 files changed, 6 insertions, 5 deletions
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