0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

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
parent 433912f04a
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;