Skip to content

Commit e6a338a

Browse files
guidocellakasper93
authored andcommitted
options.lua: stop searching in lua-settings
This has been deprecated for 8 years, since 9eadc06, with a visible warning. Removing it has the benefit of not spamming every log file with lua-settings searches.
1 parent 18f83bc commit e6a338a

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stop searching the deprecated `lua-settings` directory for script config files

player/lua/options.lua

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ local function read_options(options, identifier, on_update)
5252
-- read config file
5353
local conffilename = "script-opts/" .. identifier .. ".conf"
5454
local conffile = mp.find_config_file(conffilename)
55-
if conffile == nil then
56-
msg.debug(conffilename .. " not found.")
57-
conffilename = "lua-settings/" .. identifier .. ".conf"
58-
conffile = mp.find_config_file(conffilename)
59-
if conffile then
60-
msg.warn("lua-settings/ is deprecated, use directory script-opts/")
61-
end
62-
end
6355
local f = conffile and io.open(conffile,"r")
6456
if f == nil then
6557
-- config not found

0 commit comments

Comments
 (0)