diff options
author | wm4 <wm4@nowhere> | 2015-05-29 15:50:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-29 15:50:09 +0200 |
commit | 327b091909e713c2c53a45c2868ed6ae0e70a533 (patch) | |
tree | e1aa4261f2c67f9a480693a4cdf274713b1907b5 /player/lua/options.lua | |
parent | 9fe6a8c5f54ad89b962e3d88c641b352308beacd (diff) | |
download | mpv-327b091909e713c2c53a45c2868ed6ae0e70a533.tar.bz2 mpv-327b091909e713c2c53a45c2868ed6ae0e70a533.tar.xz |
lua: fix options submodule
It polluted the global namespace, instead of exporting the function
properly.
For now, keep it compatible by explicitly keeping the bogus export.
Also fix a mistake in the manpage example.
Diffstat (limited to 'player/lua/options.lua')
-rw-r--r-- | player/lua/options.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/player/lua/options.lua b/player/lua/options.lua index 087e31b6ef..dd76f7ace7 100644 --- a/player/lua/options.lua +++ b/player/lua/options.lua @@ -30,7 +30,7 @@ local function typeconv(desttypeval, val) end -function read_options(options, identifier) +local function read_options(options, identifier) if identifier == nil then identifier = mp.get_script_name() end @@ -101,4 +101,9 @@ function read_options(options, identifier) end +-- backwards compatibility with broken read_options export +_G.read_options = read_options +return { + read_options = read_options, +} |