Expose the optional argument for ResolvePath to lua and add it to ResolveRelativePath.

This commit is contained in:
Kyzentun Keeslala
2015-07-16 17:54:48 -06:00
parent ffc0c0ecb2
commit a888506b32
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ setmetatable( Def, {
end,
})
function ResolveRelativePath( path, level )
function ResolveRelativePath(path, level, optional)
if path:sub(1,1) ~= "/" then
-- "Working directory":
local sDir = DebugPathToRealPath( debug.getinfo(level+1,"S").source )
@@ -88,7 +88,7 @@ function ResolveRelativePath( path, level )
path = sDir .. path
end
path = ActorUtil.ResolvePath( path, level+1 )
path = ActorUtil.ResolvePath(path, level+1, optional)
return path
end