diff options
Diffstat (limited to 'player/lua.c')
-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"); |