From 81a1cf8378ef815ffa3d959c429c60b5c2fec942 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 20 Jan 2004 03:31:53 +0000 Subject: [PATCH] throw if texture fails to load --- stepmania/src/Model.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Model.cpp b/stepmania/src/Model.cpp index cd6a758130..fd2b938267 100644 --- a/stepmania/src/Model.cpp +++ b/stepmania/src/Model.cpp @@ -388,8 +388,10 @@ bool Model::LoadMilkshapeAscii( CString sPath ) if( IsAFile(sTexturePath) ) Material.aniTexture.Load( sTexturePath ); else - LOG->Warn( "\"%s\" references a texture \"%s\" that does not exist", - sPath.c_str(), sTexturePath.c_str() ); + { + CString sError = ssprintf( "'%s' references a texture '%s' that does not exist", sPath.c_str(), sTexturePath.c_str() ); + RageException::Throw( sError ); + } } // alpha texture