From 3bba8d6a2a9ea82b182d872dbac41c6a0da3eef6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 18 Jan 2007 21:07:10 +0000 Subject: [PATCH] --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40319 --- core/interfaces/IExtensionSys.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/interfaces/IExtensionSys.h b/core/interfaces/IExtensionSys.h index 9982832e..fc1a68f6 100644 --- a/core/interfaces/IExtensionSys.h +++ b/core/interfaces/IExtensionSys.h @@ -137,6 +137,18 @@ namespace SourceMod virtual void NotifyInterfaceDrop(SMInterface *pInterface) { } + + /** + * @brief Return false to tell Core that your extension should be considered unsable. + * + * @param error Error buffer. + * @param maxlength Size of error buffer. + * @return True on success, false otherwise. + */ + virtual bool QueryRunning(char *error, size_t maxlength) + { + return true; + } public: virtual bool IsMetamodExtension() =0; virtual const char *GetExtensionName() =0;