From a6d544d6a663752bcd6cc108824f52c25f595273 Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Tue, 20 Sep 2022 14:09:09 -0400 Subject: TOOLS/lua/autoload: alphebatize auto-loaded file extensions Alphabetizing the extensions cleans up the code and makes it less ambiguous where newer extensions should be added. The video line also was wrapped to 72 characters for cleanliness. --- TOOLS/lua/autoload.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua index f093589083..a3dce9e751 100644 --- a/TOOLS/lua/autoload.lua +++ b/TOOLS/lua/autoload.lua @@ -49,15 +49,16 @@ function SetUnion (a,b) end EXTENSIONS_VIDEO = Set { - 'mkv', 'avi', 'mp4', 'ogv', 'webm', 'rmvb', 'flv', 'wmv', 'mpeg', 'mpg', 'm4v', '3gp', 'm2ts' + '3gp', 'avi', 'flv', 'm2ts', 'm4v', 'mkv', 'mp4', 'mpeg', 'mpg', + 'ogv', 'rmvb', 'webm', 'wmv' } EXTENSIONS_AUDIO = Set { - 'mp3', 'wav', 'ogm', 'flac', 'm4a', 'wma', 'ogg', 'opus' + 'flac', 'm4a', 'mp3', 'ogg', 'ogm', 'opus', 'wav', 'wma' } EXTENSIONS_IMAGES = Set { - 'jpg', 'jpeg', 'png', 'tif', 'tiff', 'gif', 'webp', 'svg', 'bmp' + 'bmp', 'gif', 'jpeg', 'jpg', 'png', 'svg', 'tif', 'tiff', 'webp' } EXTENSIONS = Set {} -- cgit v1.2.3