ok this makes no sense now, remove 'enhanced' option from ios
authorkoda
Tue, 23 Aug 2011 09:23:45 +0200
changeset 5664 dfc574d7f49e
parent 5662 99083392cd4f
child 5666 cc79eb30346e
ok this makes no sense now, remove 'enhanced' option from ios
project_files/HedgewarsMobile/Classes/CreationChamber.m
project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m
project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
--- a/project_files/HedgewarsMobile/Classes/CreationChamber.m	Tue Aug 23 03:46:17 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/CreationChamber.m	Tue Aug 23 09:23:45 2011 +0200
@@ -30,9 +30,6 @@
     [settings setObject:[NSNumber numberWithBool:NO] forKey:@"classic_menu"];
     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sync_ws"];
 
-    // limit graphic usage on older devices
-    [settings setObject:[NSNumber numberWithBool:IS_VERY_POWERFUL(getModelType())] forKey:@"enhanced"];
-
     // don't overwrite these two strings when present
     if ([settings objectForKey:@"username"] == nil)
         [settings setObject:@"" forKey:@"username"];
--- a/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Tue Aug 23 03:46:17 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameInterfaceBridge.m	Tue Aug 23 09:23:45 2011 +0200
@@ -82,7 +82,6 @@
     NSString *horizontalSize = [[NSString alloc] initWithFormat:@"%d", width];
     NSString *verticalSize = [[NSString alloc] initWithFormat:@"%d", height];
     NSString *rotation = [[NSString alloc] initWithString:@"0"];
-    BOOL enhanced = [[settings objectForKey:@"enhanced"] boolValue];
 
     NSString *modelId = getModelType();
     NSInteger tmpQuality;
@@ -90,7 +89,7 @@
         tmpQuality = 0x00000001 | 0x00000002 | 0x00000008 | 0x00000040;                 // rqLowRes | rqBlurryLand | rqSimpleRope | rqKillFlakes
     else if ([modelId hasPrefix:@"iPhone2"] || [modelId hasPrefix:@"iPod3"])                                    // = iPhone 3GS or iPod Touch 3G
         tmpQuality = 0x00000002 | 0x00000040;                                           // rqBlurryLand | rqKillFlakes
-    else if ([modelId hasPrefix:@"iPad1"] || [modelId hasPrefix:@"iPod4"] || enhanced == NO)                    // = iPad 1G or iPod Touch 4G or not enhanced mode
+    else if ([modelId hasPrefix:@"iPad1"] || [modelId hasPrefix:@"iPod4"])                    // = iPad 1G or iPod Touch 4G
         tmpQuality = 0x00000002;                                                        // rqBlurryLand
     else                                                                                                        // = everything else
         tmpQuality = 0;                                                                 // full quality
--- a/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Tue Aug 23 03:46:17 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Tue Aug 23 09:23:45 2011 +0200
@@ -87,9 +87,6 @@
         case 90:    //synched weapons/scheme
             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"sync_ws"];
             break;
-        case 70:    //enhanced graphics
-            [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"enhanced"];
-            break;
         case 60:    //classic menu
             [settings setObject:[NSNumber numberWithBool:theSwitch.on] forKey:@"classic_menu"];
             break;
@@ -123,7 +120,7 @@
             return 2;
             break;
         case 2:     // other options
-            return 5;
+            return 3;
             break;
         default:
             DLog(@"Nope");
@@ -237,15 +234,6 @@
                     switchContent.tag = 90;
                     break;
                 case 2:
-                    cell.textLabel.text = NSLocalizedString(@"Enanched Graphics", @"");
-                    cell.detailTextLabel.text = NSLocalizedString(@"Beware that the game will consume more memory", @"");
-                    switchContent.on = [[settings objectForKey:@"enhanced"] boolValue];
-                    switchContent.tag = 70;
-                    // prevent the oldest devices to even think about enabling it
-                    if (IS_NOT_POWERFUL(getModelType()))
-                        switchContent.enabled = NO;
-                    break;
-                case 3:
                     cell.textLabel.text = NSLocalizedString(@"Classic Ammo Menu", @"");
                     cell.detailTextLabel.text = NSLocalizedString(@"Select which style of ammo menu you prefer",@"");
                     switchContent.on = [[settings objectForKey:@"classic_menu"] boolValue];