From 1e2d409fb4f08dd73554c8c065292af325bf9f12 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 28 Feb 2014 22:25:48 +0100 Subject: lua: add option to disable auto-loading of lua scripts --- player/lua.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/lua.c') diff --git a/player/lua.c b/player/lua.c index e12a5f533e..e66f8e514e 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1060,6 +1060,8 @@ void mp_lua_init(struct MPContext *mpctx) if (files[n][0]) mp_lua_load_script(mpctx, files[n]); } + if (!mpctx->opts->auto_load_scripts) + return; // Load ~/.mpv/lua/* void *tmp = talloc_new(NULL); char *lua_path = mp_find_user_config_file(tmp, mpctx->global, "lua"); -- cgit v1.2.3