Hi everyone,
I have two plugins A & B. My plugin B needs to use a native from the plugin A.
Plugin A:
PHP Code:
Handle gl_my_forward;
public void OnPluginStart()
{
gl_my_forward = CreateForward(ET_Ignore, Param_Cell);
}
/* ... AskPluginLoad2 ... */
public int my_native_fct(Handle hPlugin, int iNumParams)
{
AddToForward(gl_my_forward, hPlugin, GetNativeFunction(1));
return 0;
}
Plugin B:
PHP Code:
public void OnPluginStart()
{
my_native(xxxxxxxx);
}
---------------------
My issue is that "OnPluginStart()" of the plugin B
is called before "OnPluginStart()" of the plugin A. This means that the global variable "gl_my_forward" isn't still initialized in the plugin A ==> Error.
Is it the normal behavior? Is there a clean solution to this issue?
Thank you
__________________