equal
deleted
inserted
replaced
2062 bool wasstarted; |
2062 bool wasstarted; |
2063 |
2063 |
2064 _cocoa_video_dialog = true; |
2064 _cocoa_video_dialog = true; |
2065 |
2065 |
2066 wasstarted = _cocoa_video_started; |
2066 wasstarted = _cocoa_video_started; |
2067 if (!_cocoa_video_started && _video_driver->Start(NULL) != NULL) { |
2067 if (_video_driver == NULL) { |
|
2068 setupApplication(); // Setup application before showing dialog |
|
2069 } else if (!_cocoa_video_started && _video_driver->Start(NULL) != NULL) { |
2068 fprintf(stderr, "%s: %s\n", title, message); |
2070 fprintf(stderr, "%s: %s\n", title, message); |
2069 return; |
2071 return; |
2070 } |
2072 } |
2071 |
2073 |
2072 NSRunAlertPanel([NSString stringWithCString: title], [NSString stringWithCString: message], [NSString stringWithCString: buttonLabel], nil, nil); |
2074 NSRunAlertPanel([NSString stringWithCString: title], [NSString stringWithCString: message], [NSString stringWithCString: buttonLabel], nil, nil); |
2073 |
2075 |
2074 if (!wasstarted) _video_driver->Stop(); |
2076 if (!wasstarted && _video_driver != NULL) _video_driver->Stop(); |
2075 |
2077 |
2076 _cocoa_video_dialog = false; |
2078 _cocoa_video_dialog = false; |
2077 } |
2079 } |
2078 |
2080 |
2079 /* This is needed since OS X application bundles do not have a |
2081 /* This is needed since OS X application bundles do not have a |