From 97f1d5e43d96fc38e4d8a34fff4bda201c1206dc Mon Sep 17 00:00:00 2001 From: Mark Riedesel Date: Thu, 1 May 2014 17:10:46 -0500 Subject: [PATCH] Add option for skin.directory specification in skin registration --- libraries/skins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/skins.lua b/libraries/skins.lua index 7895cab..c1abe8d 100644 --- a/libraries/skins.lua +++ b/libraries/skins.lua @@ -38,7 +38,7 @@ function loveframes.skins.Register(skin) loveframes.util.Error("Skin registration error: A skin with the name '" ..name.. "' already exists.") end - local dir = loveframes.config["DIRECTORY"] .. "/skins/" ..name + local dir = skin.directory or loveframes.config["DIRECTORY"] .. "/skins/" ..name local dircheck = love.filesystem.isDirectory(dir) if not dircheck then loveframes.util.Error("Skin registration error: Could not find a directory for skin '" ..name.. "'.")