From beaa7c71531f978fa0e51283781534f372404496 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 2 May 2014 01:25:58 +0200 Subject: lua: remove "lua/" prefix from script names This affects the return value of mp.script_name, the "client name" (what's returned by mpv_client_name()) and all associated features, as well as the mpv terminal output module prefix when scripts print something. As discussed in #748. --- player/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/lua.c b/player/lua.c index 4ba4198aeb..0c8c415630 100644 --- a/player/lua.c +++ b/player/lua.c @@ -158,7 +158,7 @@ static char *script_name_from_filename(void *talloc_ctx, const char *fname) !(c >= '0' && c <= '9')) name[n] = '_'; } - return talloc_asprintf(talloc_ctx, "lua/%s", name); + return talloc_asprintf(talloc_ctx, "%s", name); } static int load_file(struct script_ctx *ctx, const char *fname) -- cgit v1.2.3