# HG changeset patch # User koda # Date 1292803726 -3600 # Node ID e26ef1eca20a28972654f2a57007191ac5665867 # Parent 087fdb85e2ef9d2cadba47ddcea7709f32d08901 ipod touch 4g has only 256mb of ram (like ipad) diff -r 087fdb85e2ef -r e26ef1eca20a project_files/HedgewarsMobile/Classes/CommodityFunctions.h --- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.h Sun Dec 19 14:11:55 2010 -0500 +++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.h Mon Dec 20 01:08:46 2010 +0100 @@ -58,7 +58,7 @@ #define IS_DUALHEAD() ([[UIScreen class] respondsToSelector:@selector(screens)] && [[UIScreen screens] count] > 1) #define IS_IPAD() (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) #define IS_NOT_POWERFUL() ([modelType() hasPrefix:@"iPhone1"] || [modelType() hasPrefix:@"iPod1,1"] || [modelType() hasPrefix:@"iPod2,1"]) -#define IS_NOT_VERY_POWERFUL() ([modelType() hasPrefix:@"iPad1"] || [modelType() hasPrefix:@"iPhone2"] || [modelType() hasPrefix:@"iPod3"] ) +#define IS_NOT_VERY_POWERFUL() ([modelType() hasPrefix:@"iPad1"] || [modelType() hasPrefix:@"iPhone2"] || [modelType() hasPrefix:@"iPod3"] || [modelType() hasPrefix:@"iPod4"] ) #define DEFAULT_NETGAME_PORT 46631 diff -r 087fdb85e2ef -r e26ef1eca20a project_files/HedgewarsMobile/Classes/GameSetup.h --- a/project_files/HedgewarsMobile/Classes/GameSetup.h Sun Dec 19 14:11:55 2010 -0500 +++ b/project_files/HedgewarsMobile/Classes/GameSetup.h Mon Dec 20 01:08:46 2010 +0100 @@ -42,9 +42,8 @@ -(id) initWithDictionary:(NSDictionary *)gameDictionary; -(void) engineProtocol; --(void) startThread:(NSString *)selector; --(int) sendToEngine:(NSString *)string; --(int) sendToEngineNoSave:(NSString *)string; +-(int) sendToEngine:(NSString *)string; +-(int) sendToEngineNoSave:(NSString *)string; -(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor; -(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams; -(NSInteger) provideScheme:(NSString *)schemeName; diff -r 087fdb85e2ef -r e26ef1eca20a project_files/HedgewarsMobile/Classes/GameSetup.m --- a/project_files/HedgewarsMobile/Classes/GameSetup.m Sun Dec 19 14:11:55 2010 -0500 +++ b/project_files/HedgewarsMobile/Classes/GameSetup.m Mon Dec 20 01:08:46 2010 +0100 @@ -452,7 +452,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"] || enhanced == NO) // = iPad 1G or not enhanced mode + else if ([modelId hasPrefix:@"iPad1"] || [modelId hasPrefix:@"iPod4"] || enhanced == NO) // = iPad 1G or iPod Touch 4G or not enhanced mode tmpQuality = 0x00000002; // rqBlurryLand else // = everything else tmpQuality = 0; // full quality