this method does not break relative paths

the method dir = dir:gsub("%.", "/")
This commit is contained in:
CapsAdmin 2013-12-05 15:39:09 +01:00
parent e131ed8628
commit 5b72b20743

View File

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