From ed86f8fc2c4f309701f408561f5c41f7909b9838 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 Nov 2003 16:10:17 +0000 Subject: [PATCH] Improve checkpoints. Fix missing File= behavior. --- stepmania/src/BGAnimationLayer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index ee5c33f66e..6d19d30f7b 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -439,6 +439,9 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer ) ASSERT( IsADirectory(sAniDir) ); + CHECKPOINT_M( ssprintf( "BGAnimationLayer::LoadFromIni \"%s\"::%s %s", + sAniDir.c_str(), sLayer.c_str(), m_bGeneric? "(generic) ":"" ) ); + CString sPathToIni = sAniDir + "BGAnimation.ini"; IniFile ini(sPathToIni); @@ -474,6 +477,7 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer ) { HOOKS->MessageBoxOK( ssprintf( "In the ini file for BGAnimation '%s', '%s' is missing a the line 'File='.", sAniDir.c_str(), sLayer.c_str() ) ); + sPath = THEME->GetPathToG("_missing"); } @@ -588,7 +592,7 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer ) Actor* pActor = MakeActor( ID ); m_pActors.push_back( pActor ); - ASSERT( !(m_bGeneric && Stretch) ); + RAGE_ASSERT_M( !(m_bGeneric && Stretch), ssprintf("BGA \"%s\"::%s can't stretch",sAniDir.c_str(),sLayer.c_str()) ); if( !m_bGeneric ) { if( Stretch )