From 9bcc882659d5834bb3728c1398508dc14ad12736 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Aug 2015 00:14:23 +0200 Subject: lua: make mp.input_define_section use the define-section command --- player/lua/defaults.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'player/lua/defaults.lua') diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index 2ecb83fb77..bc9114ffa5 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -24,6 +24,13 @@ function mp.get_opt(key, def) return val end +function mp.input_define_section(section, contents, flags) + if flags == nil or flags == "" then + flags = "default" + end + mp.commandv("define-section", section, contents, flags) +end + -- For dispatching script_binding. This is sent as: -- script_message_to $script_name $binding_name $keystate -- The array is indexed by $binding_name, and has functions like this as value: -- cgit v1.2.3