Poll: Change the API?
You do not have permission to vote in this poll.
Yes, break all the plugins
85.71%
6 85.71%
No, keep it as is
14.29%
1 14.29%
Total 7 vote(s) 100%
* You voted for this item. [Show Results]

API change in hook-adding
#9
Wow, I've rewritten the hook system almost completely. But it works! Smile I just hope I didn't make some stupid mistake in there, go ahead and test it.

Don't forget, the recommended way of adding hooks is
cPluginManager.AddHook(HOOK_TYPE, CallbackFunction);
Note the dot instead of a colon, the AddHook function is "static" - it doesn't need a cPluginManager instance (since there's only one anyway). Colon will be accepted, too, but is deprecated.

I'll update the HookNotify and the Core plugins for the new API now.
Reply
Thanks given by: NiLSPACE


Messages In This Thread
API change in hook-adding - by xoft - 08-21-2013, 11:00 PM
RE: API change in hook-adding - by NiLSPACE - 08-21-2013, 11:29 PM
RE: API change in hook-adding - by FakeTruth - 08-21-2013, 11:52 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:27 AM
RE: API change in hook-adding - by FakeTruth - 08-22-2013, 12:30 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:31 AM
RE: API change in hook-adding - by bearbin - 08-22-2013, 12:34 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:37 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 05:36 AM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 05:51 AM
RE: API change in hook-adding - by bearbin - 08-22-2013, 05:54 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 05:54 AM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 08:09 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 09:42 PM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 11:27 PM
RE: API change in hook-adding - by bearbin - 08-22-2013, 11:33 PM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 11:41 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 11:43 PM
RE: API change in hook-adding - by xoft - 08-23-2013, 04:27 AM
RE: API change in hook-adding - by tonibm19 - 10-20-2013, 11:26 PM
RE: API change in hook-adding - by tigerw - 10-21-2013, 03:37 AM
RE: API change in hook-adding - by bearbin - 10-21-2013, 05:30 AM
RE: API change in hook-adding - by xoft - 10-21-2013, 07:19 AM



Users browsing this thread: 8 Guest(s)