equal
deleted
inserted
replaced
51 [super viewWillAppear:animated]; |
51 [super viewWillAppear:animated]; |
52 |
52 |
53 NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:SCHEMES_DIRECTORY() error:NULL]; |
53 NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:SCHEMES_DIRECTORY() error:NULL]; |
54 self.listOfSchemes = contentsOfDir; |
54 self.listOfSchemes = contentsOfDir; |
55 |
55 |
56 if ([listOfSchemes containsObject:@"Default.plist"]) |
56 if ([self.selectedScheme isEqualToString:@""] && [listOfSchemes containsObject:@"Default.plist"]) |
57 self.selectedScheme = @"Default.plist"; |
57 self.selectedScheme = @"Default.plist"; |
58 |
58 |
59 contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:WEAPONS_DIRECTORY() error:NULL]; |
59 contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:WEAPONS_DIRECTORY() error:NULL]; |
60 self.listOfWeapons = contentsOfDir; |
60 self.listOfWeapons = contentsOfDir; |
61 |
61 |
62 if ([listOfWeapons containsObject:@"Default.plist"]) |
62 if ([self.selectedWeapon isEqualToString:@""] && [listOfWeapons containsObject:@"Default.plist"]) |
63 self.selectedWeapon = @"Default.plist"; |
63 self.selectedWeapon = @"Default.plist"; |
64 |
64 |
65 [self.tableView reloadData]; |
65 [self.tableView reloadData]; |
66 } |
66 } |
67 |
67 |
68 |
68 |
69 #pragma mark - |
69 #pragma mark - |