ok, so I'm trying to basically load a dll that can be under multiple names:
- freetype6
- libfreetype-6
and more
I don't want it to find freetype.dll (I want it to search for 'freetype' and '6')
how can I load a dll with a regex from the system paths??
otherwize I'll have to skip the system paths and load local (CWD and custom directories).
EDIT:
also, I don't want this to be windows specific, even though I'm currently looking for DLLs...
I'd like to find freetype6 on other platforms as well