From 44af8d899bfbf495b919636dab2ea0184590caf3 Mon Sep 17 00:00:00 2001 From: ne_mene Date: Sat, 28 Mar 2026 22:48:35 +0100 Subject: file extension check --- src/textures.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textures.lua') diff --git a/src/textures.lua b/src/textures.lua index 8cf98a8..b58f762 100644 --- a/src/textures.lua +++ b/src/textures.lua @@ -72,7 +72,7 @@ function load_textures_from(path) if lf.getInfo(filepath).type == "directory" then load_textures_from(filepath) else - if filepath:match("%.png$") then + if is_filetype(filepath, {"png"}) then img_bank[filepath] = lg.newImage(filepath) elseif filepath:match("%.ase$") then load_ase(filepath) -- cgit v1.3-2-g0d8e