diff options
author | wm4 <wm4@nowhere> | 2014-02-28 22:25:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-28 22:25:48 +0100 |
commit | 1e2d409fb4f08dd73554c8c065292af325bf9f12 (patch) | |
tree | 290d0e28a3eba61e971ffd67cd6124f9c52f084e /player | |
parent | 47ede0f5e3573fb6d6f40870ed50c209a1a00a38 (diff) | |
download | mpv-1e2d409fb4f08dd73554c8c065292af325bf9f12.tar.bz2 mpv-1e2d409fb4f08dd73554c8c065292af325bf9f12.tar.xz |
lua: add option to disable auto-loading of lua scripts
Diffstat (limited to 'player')
-rw-r--r-- | player/lua.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |