From ae4e5ba9e5f58a375a91303c98bf24b6f909a2eb Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 24 Jun 2006 01:33:17 +0000 Subject: [PATCH] More Sprite debugging. --- stepmania/src/Sprite.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index fe51242bf8..6e42f2a65e 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -130,6 +130,22 @@ retry: CollapsePath( sPath ); } + if( sPath == sDir ) + { + RString sMessage = ssprintf( "'%s' has a texture '%s' that collapses to './'.", + m_sSpritePath.c_str(), sTextureFile.c_str() ); + switch( Dialog::AbortRetryIgnore(sMessage) ) + { + case Dialog::abort: + RageException::Throw( sMessage ); + case Dialog::retry: + goto retry; + case Dialog::ignore: + return; + default: + ASSERT(0); + } + } if( !sPath.empty() ) {