Open benawi1402 opened 6 years ago
Hi, it looks like this is coming from https://github.com/obsproject/obs-studio/blob/18c1f10488dd56abe0a2d11e215c2c90d2c9ee48/libobs/util/platform-windows.c#L104 --- according to MSDN, the 126 is ERROR_MOD_NOT_FOUND, so it seems that the DLL is not where it's expected to be.
I wouldn't be hugely surprised if the forward slashes in the path were causing a problem for LoadLibrary, I don't see any translation to windows paths happening in that code (but admittedly I haven't looked very hard...)
edit ok, it is fairly clear that it is switching to windows paths. So, I guess the file just isn't there?
Anyways, to answer your question, I don't "know" if this works in OBS 21 (there may have been ABI changes which break things to some degree). I'd be interested in finding out from your experiences with it if you notice anything that does seem to be quite broken.
I'll get back to this when i have more time for testing, i'm currently a little bit short on time.
Does this plugin work with OBS 21.1.2? I have successfully built OBS 21.1.2 and the newest version of TwitchSwitcher, have copied the files into the running directory of OBS, but the plugin can't be loaded.
From the log files of OBS:
16:29:08.958: LoadLibrary failed for '../../obs-plugins/64bit/twitchsw.dll': (null) (126) 16:29:08.958: Module '../../obs-plugins/64bit/twitchsw.dll' not loaded
I checked wether some dependencies were missing for twitchsw.dll, but as far as i can tell all implicit dependencies are fullfilled (checked with dependency walker)