diff options
-rw-r--r-- | player/scripting.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/player/scripting.c b/player/scripting.c index 2ad45075b0..d8fbb6f84e 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -198,9 +198,12 @@ void mp_load_scripts(struct MPContext *mpctx) for (int n = 0; files && files[n]; n++) { if (s && !warning_displayed) { warning_displayed = 1; - MP_WARN(mpctx, - "warning: '%s' - '%s' dirs are deprecated. Please move scripts to '%s'.", - files[n], dirs[s], dirs[0]); + char *cfg = mp_find_config_file(tmp, mpctx->global, ""); + if (cfg) + cfg = mp_path_join(tmp, bstr0(cfg), bstr0("scripts")); + MP_WARN(mpctx, "Warning: '%s' - lua subdir is deprecated.\n" + "Please move scripts to '%s'.\n", + files[n], cfg ? cfg : "/scripts"); } mp_load_script(mpctx, files[n]); } |