mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Add option for skin.directory specification in skin registration
This commit is contained in:
parent
6c833ad975
commit
97f1d5e43d
@ -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