mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Allow loadfile in non-rt scripts
This commit is contained in:
parent
ee132c93ac
commit
89f0604d89
1 changed files with 2 additions and 2 deletions
|
|
@ -90,9 +90,9 @@ LuaState::tweak_rt_gc () {
|
|||
|
||||
void
|
||||
LuaState::sandbox (bool rt_safe) {
|
||||
do_command ("loadfile = nil dofile = nil require = nil dofile = nil package = nil debug = nil os.exit = nil os.setlocale = nil rawget = nil rawset = nil coroutine = nil module = nil");
|
||||
do_command ("dofile = nil require = nil dofile = nil package = nil debug = nil os.exit = nil os.setlocale = nil rawget = nil rawset = nil coroutine = nil module = nil");
|
||||
if (rt_safe) {
|
||||
do_command ("os = nil io = nil");
|
||||
do_command ("os = nil io = nil loadfile = nil");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue