diff options
author | wm4 <wm4@nowhere> | 2015-08-06 00:14:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-06 00:17:30 +0200 |
commit | 9bcc882659d5834bb3728c1398508dc14ad12736 (patch) | |
tree | d6ad910cd2d6129ca0def941ccf00feacf66663a /player/lua/defaults.lua | |
parent | d1179f95011103a1e3aa9bacd270e82935370f88 (diff) | |
download | mpv-9bcc882659d5834bb3728c1398508dc14ad12736.tar.bz2 mpv-9bcc882659d5834bb3728c1398508dc14ad12736.tar.xz |
lua: make mp.input_define_section use the define-section command
Diffstat (limited to 'player/lua/defaults.lua')
-rw-r--r-- | player/lua/defaults.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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: |