From 88baf9dbbc14e3c9d498ef63a59d3bfc89fbf900 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 6 Apr 2005 12:02:49 +0000 Subject: [PATCH] hack: Allow relative paths in Lua expressions --- stepmania/src/ActorUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index d52c433023..0a9f0a533c 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -133,7 +133,7 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sAniDir, const XNode* pNode // FIXME: If specifying a path in Lua, assume it is absolute. We need a way to specify // absolute paths. We can't use a slash at the beginning to mean absolute because FILEMAN // maps that to the root of the filesystem. - bool bIsAbsolutePath = LUA->RunAtExpressionS( sFile ); + bool bIsAbsolutePath = LUA->RunAtExpressionS( sFile ) && sFile.Left(2) != ".."; FixSlashesInPlace( sFile ); CString sText;