mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
deps/obs-scripting: Set file/chunk name when loading lua scripts
This commit is contained in:
parent
43c7742f8b
commit
82137de0bb
3
deps/obs-scripting/obs-scripting-lua.c
vendored
3
deps/obs-scripting/obs-scripting-lua.c
vendored
@ -129,7 +129,8 @@ static bool load_lua_script(struct obs_lua_script *data)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (luaL_loadbuffer(script, file_data, strlen(file_data), NULL) != 0) {
|
||||
if (luaL_loadbuffer(script, file_data, strlen(file_data),
|
||||
data->base.path.array) != 0) {
|
||||
script_warn(&data->base, "Error loading file: %s",
|
||||
lua_tostring(script, -1));
|
||||
bfree(file_data);
|
||||
|
Loading…
Reference in New Issue
Block a user