Merge pull request #93 from CapsAdmin/patch-1

this method does not break relative paths
This commit is contained in:
Kenny Shields 2013-12-10 02:42:15 -08:00
commit 696c1b8ed5

View File

@ -61,7 +61,7 @@ function loveframes.load()
require(dir .. ".debug") require(dir .. ".debug")
-- replace all "." with "/" in the directory setting -- replace all "." with "/" in the directory setting
dir = dir:gsub("%.", "/") dir = dir:gsub("\\", "/"):gsub("(%a)%.(%a)", "%1/%2")
loveframes.config["DIRECTORY"] = dir loveframes.config["DIRECTORY"] = dir
-- create a list of gui objects, skins and templates -- create a list of gui objects, skins and templates
@ -387,4 +387,4 @@ function loveframes.GetState()
end end
-- load the library -- load the library
loveframes.load() loveframes.load()