--- Copied from http://www.dsource.org/forums/viewtopic.php?t=4361 ---
Hey, I would like to suggest a new method for GenericLoader?:
/**
* Same is load, but looks in ./dir/*
*/
void loadDir(char[] dir, char[] libNameString = null)
{
...
}
I tried to make a wrapper for it, but unfortunately winLibs/linLibs/macLibs are not publically available (and I did not want to modify DerelictUtil?.d because that would break compatibility).
Why would this be useful? Well, I got a TON of DLLs right now, and it would be really nice to be able to put them into a separate directory without doing stuff like:
version(Windows)
{
DerelictIL.load("lib/DevIL.dll","DevIL.dll");
}
else version(linux)
{
DerelictIL.load("lib/libdevil.so,libdevil.so");
}
else version(darwin)
{
DerelictIL.load(...); // okay, I don't know how Mac libs are named
}
...for each DLL