Quote:
|
Originally Posted by xeroblood
Ooooh.. thx for clearing that up PM!!
I thought they were all handled the same way internally with regards to the return value..
Thx for that list too, now I know which forwards I can omit the return value of completely!! I'm surprised to see that so many are actually ignored..

|
It would be pretty bad if a plugin decided to block plugin_init ^^
You can search meta_api for "plugin_init" (in quotes), there you will have ET_IGNORE which means the return value is ignored
ET_STOP means the "normal PLUGIN_HANDLED system" (basically, nonzero value -> stop executing plugins and return the value that the plugin returned)
ET_STOP2 is like ET_STOP but support PLUGIN_HANDLED_MAIN (-> stop execution on a PLUGIN_HANDLED, continue otherwise, returns the highest return value)
ET_CONTINUE means ignore return value and return the highest one (useful for one-plugin-only forwards).
More on this in CForward.h
__________________