mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Merge pull request #120 from Klowner/skin-directory-option
Add option for skin.directory specification in skin registration
This commit is contained in:
commit
a02fafd902
@ -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.. "'.")
|
||||
|
Loading…
Reference in New Issue
Block a user