From 74984aaff190becd9779f92582107db3b48d42a6 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Sun, 4 May 2014 12:29:32 -0700 Subject: [PATCH] TOOLS/lua: no longer gsub out "lua/" prefix, now that its no longer there --- TOOLS/lua/autocrop.lua | 2 +- TOOLS/lua/drc-control.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua index 84c712e412..55cf817950 100644 --- a/TOOLS/lua/autocrop.lua +++ b/TOOLS/lua/autocrop.lua @@ -26,7 +26,7 @@ -- to mpv's arguments. This may be desirable to allow cropdetect more -- time to collect data. -script_name=string.gsub(mp.get_script_name(),"lua/","") +script_name=mp.get_script_name() cropdetect_label=string.format("%s-cropdetect",script_name) crop_label=string.format("%s-crop",script_name) diff --git a/TOOLS/lua/drc-control.lua b/TOOLS/lua/drc-control.lua index f0a6ff2721..17e9f370f9 100644 --- a/TOOLS/lua/drc-control.lua +++ b/TOOLS/lua/drc-control.lua @@ -17,7 +17,7 @@ -- OSD feedback of the current filter state is displayed on pressing -- each bound key. -script_name=mp.get_script_name():gsub("lua/","",1) +script_name=mp.get_script_name() function print_state(params) if params then