This allows multiple plugins to link against each other, while all being placed in the plugins folder.
If libA.dll provides a bunch of base functionality, and modX.dll links against it, with the current system you'd either to specifically link against Plugins/libA.dll, or to lay out files as follows:
However with this layout, if you want to run libA.dll by itself, it'll never be loaded - it would have to be placed in plugins instead. Installing modX.dll would mean you need to move it.
Additionally there's also the problem of what if modY.dll chooses the opposite setup, so you need libA.dll in both places?
With this patch, linking against just libA.dll will check both locations, so we can just tell users to always place all files in the plugins folder.
This allows multiple plugins to link against each other, while all being placed in the plugins folder.
If
libA.dll
provides a bunch of base functionality, andmodX.dll
links against it, with the current system you'd either to specifically link againstPlugins/libA.dll
, or to lay out files as follows:However with this layout, if you want to run
libA.dll
by itself, it'll never be loaded - it would have to be placed in plugins instead. InstallingmodX.dll
would mean you need to move it.Additionally there's also the problem of what if
modY.dll
chooses the opposite setup, so you needlibA.dll
in both places?With this patch, linking against just
libA.dll
will check both locations, so we can just tell users to always place all files in the plugins folder.