summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-19 19:25:54 +0100
committerwm4 <wm4@nowhere>2020-01-19 19:25:54 +0100
commit00cdda2ae80f2f3c5b6fc4302d7edaf14755d037 (patch)
tree783efd7934056ad73a68593cf2878c5e89235958 /player/core.h
parentee7be62dbc3c25b835c5f14b81382a5c306aa15b (diff)
downloadmpv-00cdda2ae80f2f3c5b6fc4302d7edaf14755d037.tar.bz2
mpv-00cdda2ae80f2f3c5b6fc4302d7edaf14755d037.tar.xz
scripting: make player error when attempting to load unknown scripts
It's ridiculous that --script=something.dumb does not cause an error. Make it error, and extend this behavior to the scripts/ sub-dir in the mpv config dir.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h
index c300c82df9..acb57ddbe2 100644
--- a/player/core.h
+++ b/player/core.h
@@ -624,7 +624,7 @@ struct mp_scripting {
const char *file_ext; // e.g. "lua"
int (*load)(struct mpv_handle *client, const char *filename);
};
-void mp_load_scripts(struct MPContext *mpctx);
+bool mp_load_scripts(struct MPContext *mpctx);
void mp_load_builtin_scripts(struct MPContext *mpctx);
int mp_load_user_script(struct MPContext *mpctx, const char *fname);