# HG changeset patch # User antonc27 # Date 1442710593 -7200 # Node ID 0fdef687de6574c926255c8a3df0e0e6fe7feb9b # Parent 3dbea499390d864152396bb28c5198960db2799e - Weapon and scheme plist's names(which passed to engine) must contain spaces, not underscores diff -r 3dbea499390d -r 0fdef687de65 project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m --- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m Sun Sep 20 02:52:49 2015 +0200 +++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m Sun Sep 20 02:56:33 2015 +0200 @@ -331,7 +331,8 @@ { if (![scheme isEqualToString:@"*"]) { - self.selectedScheme = [NSString stringWithFormat:@"%@.plist",scheme]; + NSString *correctScheme = [scheme stringByReplacingOccurrencesOfString:@"_" withString:@" "]; + self.selectedScheme = [NSString stringWithFormat:@"%@.plist", correctScheme]; } [self.topControl setEnabled:YES forSegmentAtIndex:0]; } @@ -346,7 +347,8 @@ { if (![weapon isEqualToString:@"*"]) { - self.selectedWeapon = [NSString stringWithFormat:@"%@.plist",weapon]; + NSString *correctWeapon = [weapon stringByReplacingOccurrencesOfString:@"_" withString:@" "]; + self.selectedWeapon = [NSString stringWithFormat:@"%@.plist", correctWeapon]; } [self.topControl setEnabled:YES forSegmentAtIndex:1]; }