diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2017-06-30 14:53:33 +0100 |
---|---|---|
committer | Ricardo Constantino <wiiaboo@gmail.com> | 2017-06-30 15:03:10 +0100 |
commit | c1f46dbbe9a9b2d1ae6694118244bea8859ab2f0 (patch) | |
tree | 0a32902bbd9560fa6b941f9e46a12d81b1ed781c /player/command.c | |
parent | ba8160cf59e4c13c6619c131ae14b29046eb212c (diff) | |
download | mpv-c1f46dbbe9a9b2d1ae6694118244bea8859ab2f0.tar.bz2 mpv-c1f46dbbe9a9b2d1ae6694118244bea8859ab2f0.tar.xz |
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)
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index b83196c677..560fc1dadc 100644 --- a/player/command.c +++ b/player/command.c @@ -5643,7 +5643,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re case MP_CMD_LOAD_SCRIPT: { char *script = cmd->args[0].v.s; - if (mp_load_script(mpctx, script) < 0) + if (mp_load_user_script(mpctx, script) < 0) return -1; break; } |