obs-scripting: Search native libraries in Lua script's location
This commit is contained in:
parent
433912f04a
commit
e0bc8a8c9c
1 changed files with 1 additions and 0 deletions
1
deps/obs-scripting/obs-scripting-lua.c
vendored
1
deps/obs-scripting/obs-scripting-lua.c
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue