I recall that a while back we were discussing plugin dependencies, and hacks like my LoadPPI script to circumvent that. I have a small suggestion to make it much easier to deal with plugin dependencies.
Currently, each plugin is loaded, and OnPluginInstall called, at the same time. Changing it so that all plugins are loaded, then OnPluginInstall is called on all of them, would guarantee that any code in OnPluginInstall is executed after the plugin files have been loaded (including variables). Checking for a dependency would be reduced to checking IsPluginInstalled().
I (was|still am) trying to patch this into my custom build, but it's a little more difficult than I expected - perhaps because I'm not completely familiar with the source.
Currently, each plugin is loaded, and OnPluginInstall called, at the same time. Changing it so that all plugins are loaded, then OnPluginInstall is called on all of them, would guarantee that any code in OnPluginInstall is executed after the plugin files have been loaded (including variables). Checking for a dependency would be reduced to checking IsPluginInstalled().
I (was|still am) trying to patch this into my custom build, but it's a little more difficult than I expected - perhaps because I'm not completely familiar with the source.