-
Notifications
You must be signed in to change notification settings - Fork 56
Fixes, clean up, and an attempt at Linux support. #26
Conversation
…w plugins proper to each platform. Also added Linux VST_PATH support. Also (I think) added more potential Linux paths.
See Github Issue obsproject#11 about plugins where OBS doesn't show an interface. Fixed.
See Github Issue obsproject#11 about plugins where OBS doesn't show an interface. Fixed. Also added some pathing code... but have no idea if it works. Sorry.
wchar_t *wpath; | ||
os_utf8_to_wcs_ptr(pluginPath.c_str(), 0, &wpath); | ||
soHandle = LoadLibraryW(wpath); | ||
// Why is this a (non-portable) wide char? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's copied from the windows code. Windows needs a wchar because the filesystem APIs for unicode accept a wchar. On linux and osx you should just be able to pass the string to the os_dlopen. So you can remove all this extra stuff here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for merging. Am working on it now. Will have a new PR for you soon-ish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also my next PR will include formatting fixes (if you haven't already done it) for everything.
Some fixes, enhancements, clean-up and an attempt at getting the Linux version working.
See github issue #11 for some more notes about that issue.
See github issue #3 for some more notes about that issue.