From 01bd70e0896e302aff4018a774180a5fd378a366 Mon Sep 17 00:00:00 2001 From: WetDesertRock Date: Sun, 2 Mar 2014 22:58:15 -0800 Subject: [PATCH] Fixes confusing error for OSX. Fixes the "Error: Could not decode image!" for OSX. Silly thing was trying to read the annoying .DS_Store files. --- libraries/skins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/skins.lua b/libraries/skins.lua index 6fc6bff..7895cab 100644 --- a/libraries/skins.lua +++ b/libraries/skins.lua @@ -92,7 +92,7 @@ function loveframes.skins.Register(skin) local extension = v.extension local fullpath = v.fullpath local key = filename .. "." .. extension - if extension ~= "db" then + if extension ~= "db" and extension ~= "DS_Store" then loveframes.skins.available[name].images[key] = love.graphics.newImage(fullpath) end end @@ -196,4 +196,4 @@ function loveframes.skins.ReloadImages(name) end end -end \ No newline at end of file +end