Skip to content

Commit

Permalink
options: enable scripts related opts also with cplugins.
Browse files Browse the repository at this point in the history
If an mpv build neither supports lua nor javascript,
but only cplugins, the scripts options are still usable
to select which cplugins to load.
  • Loading branch information
olifre authored and avih committed Mar 18, 2023
1 parent e172755 commit a45995f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ static const m_option_t mp_opts[] = {
.flags = CONF_NOCFG | CONF_PRE_PARSE | M_OPT_FILE},
{"reset-on-next-file", OPT_STRINGLIST(reset_options)},

#if HAVE_LUA || HAVE_JAVASCRIPT
#if HAVE_LUA || HAVE_JAVASCRIPT || HAVE_CPLUGINS
{"scripts", OPT_PATHLIST(script_files), .flags = M_OPT_FILE},
{"script", OPT_CLI_ALIAS("scripts-append")},
{"script-opts", OPT_KEYVALUELIST(script_opts)},
Expand Down

0 comments on commit a45995f

Please sign in to comment.