obs-scripting: Search native libraries in Lua script's location

This commit is contained in:
Smartkin 2023-06-18 15:44:15 +03:00 • committed by Lain
commit e0bc8a8c9c

View file

@ -52,6 +52,7 @@ static const char *get_script_path_func = "\
function script_path()\n\
return \"%s\"\n\
end\n\
package.cpath = package.cpath .. \";\" .. script_path() .. \"/?." SO_EXT "\"\n\
package.path = package.path .. \";\" .. script_path() .. \"/?.lua\"\n";
static char *startup_script = NULL;