From e263fc7c7286f9df3c5a9793d4da03011f17be02 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 21 Aug 2013 21:32:40 +0200 Subject: [PATCH] Added a deprecation warning to the old style API. This completes #121. --- source/ManualBindings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp index 4ed5c1a16..4f8ff530d 100644 --- a/source/ManualBindings.cpp +++ b/source/ManualBindings.cpp @@ -892,6 +892,7 @@ static int tolua_cPluginManager_AddHook(lua_State * tolua_S) else if (tolua_isusertype(S, ParamIdx, "cPlugin", 0, &err) && lua_isnumber(S, ParamIdx + 1)) { // The next params are a cPlugin and a number, assume style 3 or 4 + LOGINFO("cPluginManager.AddHook(): Deprecated format used, use cPluginManager.AddHook(HOOK_TYPE, CallbackFunction) instead. Fixing the call for you."); return tolua_cPluginManager_AddHook_DefFn(PlgMgr, S, ParamIdx); }