Skip to content
Snippets Groups Projects
Commit 354fd803 authored by DarkGod's avatar DarkGod
Browse files

Particles lua threads cant access OS functions anymore

parent accfd911
No related branches found
No related tags found
No related merge requests found
......@@ -1043,6 +1043,7 @@ int thread_particles(void *data)
pt->L = L;
lua_newtable(L);
lua_setglobal(L, "__fcts");
luaL_dostring(L, "os.execute = nil os.getenv = nil os.remove = nil os.rename = nil");
luaL_dostring(L, "function core.shader.allow() return true end");
// Override "print" if requested
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment