From 5b72b20743aad2e448591f283dbf163caf83b6bf Mon Sep 17 00:00:00 2001 From: CapsAdmin Date: Thu, 5 Dec 2013 15:39:09 +0100 Subject: [PATCH] this method does not break relative paths the method dir = dir:gsub("%.", "/") --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index c4754e6..2c9bdf8 100644 --- a/init.lua +++ b/init.lua @@ -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() \ No newline at end of file +loveframes.load()