diff options
author | Andreas Wennerberg <AndreasSE93@users.noreply.github.com> | 2018-06-20 23:06:27 +0200 |
---|---|---|
committer | Ricardo Constantino <wiiaboo@users.noreply.github.com> | 2018-06-23 13:23:07 +0100 |
commit | 4a0fcdfbd84d9b93dd9b4cee457b7c1894fbb124 (patch) | |
tree | be06e1f471e8278b96ae444ab534abef630517bb /TOOLS/lua/autoload.lua | |
parent | 4d1269d9dbbd839d1f14f40a03918c96641715c2 (diff) | |
download | mpv-4a0fcdfbd84d9b93dd9b4cee457b7c1894fbb124.tar.bz2 mpv-4a0fcdfbd84d9b93dd9b4cee457b7c1894fbb124.tar.xz |
TOOLS/autoload: Fixed broken "disabled" option
`--script-opts=autoload-disabled=yes` now
properly stops the script from running.
Diffstat (limited to 'TOOLS/lua/autoload.lua')
-rw-r--r-- | TOOLS/lua/autoload.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua index e2f75d95fc..351b87bbbf 100644 --- a/TOOLS/lua/autoload.lua +++ b/TOOLS/lua/autoload.lua @@ -92,6 +92,7 @@ function find_and_add_entries() msg.trace(("dir: %s, filename: %s"):format(dir, filename)) if o.disabled then msg.verbose("stopping: autoload disabled") + return elseif #dir == 0 then msg.verbose("stopping: not a local path") return |