From ac601d932aeaa82ba2289c1a91ee3d7fda80d4e3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 12 Oct 2005 02:44:49 +0000 Subject: [PATCH] eval, handle relative paths --- stepmania/src/Sprite.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index b5c50ea512..ad7bf96f32 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -123,6 +123,11 @@ retry: if( pNode->GetAttrValue( "Texture", sTextureFile ) ) { sPath = sDir + sTextureFile; + LuaHelpers::RunAtExpressionS( sTextureFile ); + + bool bIsAbsolutePath = sTextureFile.Left(1) == "/"; + sPath = bIsAbsolutePath ? sTextureFile : sDir+sTextureFile; + CollapsePath( sPath ); }