From 5452cd48519ef185330b071b3776ee00b5d325f6 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 18 Apr 2005 07:24:23 +0000 Subject: [PATCH] warn loudly when trying to load a texture that doesn't exist --- stepmania/src/RageBitmapTexture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 46332014a3..80846a84f3 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -73,7 +73,8 @@ void RageBitmapTexture::Create() /* Tolerate corrupt/unknown images. */ if( img == NULL ) { - LOG->Warn( "RageBitmapTexture: Couldn't load %s: %s", actualID.filename.c_str(), error.c_str() ); + CString sWarning = ssprintf( "RageBitmapTexture: Couldn't load %s: %s", actualID.filename.c_str(), error.c_str() ); + Dialog::OK( sWarning ); img = RageSurfaceUtils::MakeDummySurface( 64, 64 ); ASSERT( img != NULL ); }