From 00cdda2ae80f2f3c5b6fc4302d7edaf14755d037 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 19 Jan 2020 19:25:54 +0100 Subject: 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. --- player/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/core.h') 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); -- cgit v1.2.3