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.
This commit is contained in:
WetDesertRock 2014-03-02 22:58:15 -08:00
parent c32d0d2de9
commit 01bd70e089

View File

@ -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