From c1f46dbbe9a9b2d1ae6694118244bea8859ab2f0 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Fri, 30 Jun 2017 14:53:33 +0100 Subject: scripting: add wrapper to load scripts with user paths Fixes regression since b2f756c80e, which broke load-script command when used with user paths (ex: ~~/script.lua) --- player/core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index 8af0c38dbd..fbc4b1ec7a 100644 --- a/player/core.h +++ b/player/core.h @@ -594,6 +594,7 @@ struct mp_scripting { void mp_load_scripts(struct MPContext *mpctx); void mp_load_builtin_scripts(struct MPContext *mpctx); int mp_load_script(struct MPContext *mpctx, const char *fname); +int mp_load_user_script(struct MPContext *mpctx, const char *fname); // sub.c void reset_subtitle_state(struct MPContext *mpctx); -- cgit v1.2.3