summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/defaults.lua2
-rw-r--r--player/lua/options.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua
index bb4eb648ce..4cdeef497f 100644
--- a/player/lua/defaults.lua
+++ b/player/lua/defaults.lua
@@ -14,7 +14,7 @@ function mp.get_script_name()
end
function mp.get_opt(key, def)
- local opts = mp.get_property_native("options/lua-opts")
+ local opts = mp.get_property_native("options/script-opts")
local val = opts[key]
if val == nil then
val = def
diff --git a/player/lua/options.lua b/player/lua/options.lua
index 6e53c2c48a..087e31b6ef 100644
--- a/player/lua/options.lua
+++ b/player/lua/options.lua
@@ -79,18 +79,18 @@ function read_options(options, identifier)
end
--parse command-line options
- for key, val in pairs(mp.get_property_native("options/lua-opts")) do
+ for key, val in pairs(mp.get_property_native("options/script-opts")) do
local prefix = identifier.."-"
if not (string.find(key, prefix, 1, true) == nil) then
key = string.sub(key, string.len(prefix)+1)
-- match found values with defaults
if options[key] == nil then
- msg.warn("lua-opts: unknown key " .. key .. ", ignoring")
+ msg.warn("script-opts: unknown key " .. key .. ", ignoring")
else
local convval = typeconv(options[key], val)
if convval == nil then
- msg.error("lua-opts: error converting value '" .. val ..
+ msg.error("script-opts: error converting value '" .. val ..
"' for key '" .. key .. "'")
else
options[key] = convval