aboutsummaryrefslogtreecommitdiff
path: root/src/textures.lua
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-28 22:48:35 +0100
committerne_mene <[email protected]>2026-03-28 22:48:35 +0100
commit44af8d899bfbf495b919636dab2ea0184590caf3 (patch)
treef434c0ac4af91dcc970270dc5e90095b17f056b9 /src/textures.lua
parent030af1ae1313d1d28acbc342031ce2b12820dd9d (diff)
file extension check
Diffstat (limited to 'src/textures.lua')
-rw-r--r--src/textures.lua2
1 files changed, 1 insertions, 1 deletions
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)