Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Fixes, clean up, and an attempt at Linux support. #26

Merged
merged 10 commits into from
Jan 28, 2017

Conversation

c3r1c3
Copy link
Contributor

@c3r1c3 c3r1c3 commented Jan 27, 2017

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.

wchar_t *wpath;
os_utf8_to_wcs_ptr(pluginPath.c_str(), 0, &wpath);
soHandle = LoadLibraryW(wpath);
// Why is this a (non-portable) wide char?
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@DDRBoxman DDRBoxman merged commit d55c989 into obsproject:master Jan 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants