Prevent 'love .' from adding the top save dir to the search path

This commit is contained in:
Bart van Strien
2011-01-02 21:36:51 +01:00
parent 9dad948263
commit ce05194c58
2 changed files with 2107 additions and 2100 deletions
+3 -1
View File
@@ -76,8 +76,10 @@ function love.path.getfull(p)
cwd = love.path.endslash(cwd) cwd = love.path.endslash(cwd)
-- Construct a full path. -- Construct a full path.
return cwd .. love.path.normalslashes(p) local full = cwd .. love.path.normalslashes(p)
-- Remove trailing /., if applicable
return full:match("(.-)/%.") or full
end end
-- Returns the leaf of a full path. -- Returns the leaf of a full path.
+2104 -2099
View File
File diff suppressed because it is too large Load Diff