From d4f95e3cecb18d201c0797c060d7f0ade05eb40b Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 6 Oct 2008 08:19:38 +0000 Subject: [PATCH] Make this nonfatal except for debug builds. --- stepmania/src/arch/Dialog/DialogDriver_MacOSX.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Dialog/DialogDriver_MacOSX.cpp b/stepmania/src/arch/Dialog/DialogDriver_MacOSX.cpp index 5c93e98993..989d4abda2 100644 --- a/stepmania/src/arch/Dialog/DialogDriver_MacOSX.cpp +++ b/stepmania/src/arch/Dialog/DialogDriver_MacOSX.cpp @@ -13,7 +13,14 @@ static CFOptionFlags ShowAlert( CFOptionFlags flags, const RString& sMessage, CF { CFOptionFlags result; CFStringRef text = CFStringCreateWithCString( NULL, sMessage, kCFStringEncodingUTF8 ); - ASSERT_M( text != NULL, ssprintf("CFString for dialog string \"%s\" could not be created.", sMessage.c_str()) ); + + if( text == NULL ) + { + RString error = ssprintf( "CFString for dialog string \"%s\" could not be created.", sMessage.c_str() ); + WARN( error ); + DEBUG_ASSERT_M( false, error ); + return kCFUserNotificationDefaultResponse; // Is this better than displaying an "unknown error" message? + } CFUserNotificationDisplayAlert( 0.0, flags, NULL, NULL, NULL, CFSTR(PRODUCT_FAMILY), text, OK, alt, other, &result ); CFRelease( text );