Plugin DLL loader does not try the mq2 folder for dependent dll's
Posted: Fri Mar 01, 2019 3:10 am
Failing to load plugins that would use dll dependencies. When this is fixed, plugins could use standard shared libraries to optimize size or whatever. I am writing a plugin to allow writing lua scripts instead of the mq2 custom scripting language, and that plugin uses the actual lua language from an additional dependency dll, so it won't load without this.
To fix, in MQ2PluginHandler.cpp, around line 69, add:
SetDllDirectory(gszINIPath);
To fix, in MQ2PluginHandler.cpp, around line 69, add:
SetDllDirectory(gszINIPath);