From f3a0fed72427e747d2c8c9599dd8279ff598dc28 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 21 Aug 2013 21:29:30 +0200 Subject: Hook adding uses the new API. Multiple hooks per plugin can be added. The cPluginManager.AddHook() has four available signatures, the recommended one is cPluginManager.AddHook(HOOK_TYPE, CallbackFunction) --- source/Plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Plugin.h') diff --git a/source/Plugin.h b/source/Plugin.h index 2595b9470..6e3e5f1d2 100644 --- a/source/Plugin.h +++ b/source/Plugin.h @@ -118,7 +118,7 @@ public: Returns true if the hook can be added (handler exists) Descendants should also log the specific error message as a warning if they return false. */ - virtual bool CanAddHook(cPluginManager::PluginHook a_Hook) = 0; + virtual bool CanAddHook(int a_Hook) = 0; // tolua_begin const AString & GetName(void) const { return m_Name; } -- cgit v1.2.3