diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/options.lua | 7 | ||||
-rw-r--r-- | player/lua/osc.lua | 2 |
2 files changed, 7 insertions, 2 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, +} diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 2064ba7e47..4e373da74b 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -33,7 +33,7 @@ local user_opts = { } -- read options from config and command-line -read_options(user_opts, "osc") +opt.read_options(user_opts, "osc") local osc_param = { -- calculated by osc_init() playresy = 0, -- canvas size Y |