Changeset 1190
- Timestamp:
- 02/27/2010 10:04:24 AM (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/SapphireFrappliance/FRAppliance/SapphireAppliance.m
r1179 r1190 66 66 @end 67 67 68 static NSString *initialError = nil; 68 static NSString *initialMessage = nil; 69 static NSString *initialMessageType = nil; 69 70 70 71 @implementation SapphireAppliance … … 78 79 SapphireLoadFramework(frameworkPath); 79 80 if(!loadCMPFramework(myBundlePath)) 80 initialError = BRLocalizedString(@"Error loading common player framework. Continuing is not recomended", @"Error string for loading common player framework"); 81 else if([CMPPlayerManager version] != CMPVersion) 82 initialError = BRLocalizedString(@"Common player framework is newer than expected. You may wish to check if a newer version of Sapphire is available. You may attempt to continue if you like.", @"Warning string for common player framework being newer than Sapphire"); 81 { 82 initialMessage = BRLocalizedString(@"Error loading common player framework. Continuing is not recomended", @"Error string for loading common player framework"); 83 initialMessageType = BRLocalizedString(@"Error", @"Error"); 84 85 } 86 else if([CMPPlayerManager apiVersion] != CMPAPIVersion) 87 { 88 initialMessage = BRLocalizedString(@"Common player framework is newer than expected. You may wish to check if a newer version of Sapphire is available. You may attempt to continue if you like.", @"Warning string for common player framework being newer than Sapphire"); 89 initialMessageType = BRLocalizedString(@"Warning", @"Warning"); 90 } 83 91 Class cls = NSClassFromString( @"BRFeatureManager" ); 84 92 if ( cls == Nil ) … … 168 176 - (id) applianceControllerWithScene: (id) scene 169 177 { 170 if(initialError && !usingCategories) 171 { 172 BRAlertController *controller = [SapphireFrontRowCompat alertOfType:0 titled:@"Error" primaryText:@"Framework Error" secondaryText:initialError withScene:nil]; 173 initialError = nil; 178 if(initialMessage && !usingCategories) 179 { 180 BRAlertController *controller = [SapphireFrontRowCompat alertOfType:0 titled:initialMessageType primaryText:@"Framework Issue" secondaryText:initialMessage withScene:nil]; 181 initialMessage = nil; 182 initialMessageType = nil; 174 183 return controller; 175 184 } … … 248 257 -(id)controllerForIdentifier:(id)ident 249 258 { 250 if(initialError) 251 { 252 BRAlertController *controller = [SapphireFrontRowCompat alertOfType:0 titled:@"Error" primaryText:@"Framework Error" secondaryText:initialError withScene:nil]; 253 initialError = nil; 259 if(initialMessage) 260 { 261 BRAlertController *controller = [SapphireFrontRowCompat alertOfType:0 titled:initialMessageType primaryText:@"Framework Issue" secondaryText:initialMessage withScene:nil]; 262 initialMessage = nil; 263 initialMessageType = nil; 254 264 return controller; 255 265 }
