From 8abbd1799c830999669ff4271688cb42aa69c491 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 13 Feb 2006 04:05:47 +0000 Subject: [PATCH] Don't fall back. If it can't find the picture, just don't show a loading window. --- stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m b/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m index 89de038ecc..da6c357575 100644 --- a/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m +++ b/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m @@ -2,8 +2,8 @@ #import "ProductInfo.h" #import "archutils/Darwin/SMMainThread.h" -static NSWindow *g_window; -static NSTextView *g_text; +static NSWindow *g_window = nil; +static NSTextView *g_text = nil; void MakeNewCocoaWindow( const void *data, unsigned length ) { @@ -16,9 +16,8 @@ void MakeNewCocoaWindow( const void *data, unsigned length ) image = [[[NSImage alloc] initWithData:d] autorelease]; } - if( !image ) - image = [NSImage imageNamed:@"splash.png"]; + return; NSView *view; NSSize size = [image size];