inject-helper64.exe no longer resolves relative graphics-hook paths in 32.2.0. Intended? #13683
|
My program uses libobs, and after updating to 32.2.0 (Windows) game capture stopped hooking. All I got in the log was Turns out PR #11569 added It comes down to the path OBS ends up passing to the hook (from the module data path I register). Same file, only the form differs:
Regular OBS isn't affected since it always passes absolute paths. I've fixed my side by registering an absolute module data path so Is dropping relative-path support here intended, i.e. embedders should always pass absolute paths? |
Replies: 1 comment 1 reply
|
Yes, this is the intended path now that we're using safer DLL loading, relative paths are not supported and anything relying on the current directory is also due to be phased out (3rd party DLLs can randomly change the current directory so it's not safe to rely on). Ideally |
Yes, this is the intended path now that we're using safer DLL loading, relative paths are not supported and anything relying on the current directory is also due to be phased out (3rd party DLLs can randomly change the current directory so it's not safe to rely on).
Ideally
obs_open_moduleshould always receive absolute module and data paths to prevent relative path components slipping in to generated paths.