project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 5483 fc755bb8096d
parent 5281 3324e9897ea7
child 6000 dbcebcd3d79f
equal deleted inserted replaced
5482:c047e70c53f4 5483:fc755bb8096d
   385     NSMutableArray *themeArray = [[NSMutableArray alloc] init];
   385     NSMutableArray *themeArray = [[NSMutableArray alloc] init];
   386     for (NSString *themeName in themeArrayFull) {
   386     for (NSString *themeName in themeArrayFull) {
   387         NSString *checkPath = [[NSString alloc] initWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),themeName];
   387         NSString *checkPath = [[NSString alloc] initWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),themeName];
   388         if ([[NSFileManager defaultManager] fileExistsAtPath:checkPath])
   388         if ([[NSFileManager defaultManager] fileExistsAtPath:checkPath])
   389             [themeArray addObject:themeName];
   389             [themeArray addObject:themeName];
       
   390         [checkPath release];
   390     }
   391     }
   391 
   392 
   392     // remove images that are too big for certain devices without loading the whole image
   393     // remove images that are too big for certain devices without loading the whole image
   393     NSArray *mapArrayFull = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:MAPS_DIRECTORY() error:NULL];
   394     NSArray *mapArrayFull = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:MAPS_DIRECTORY() error:NULL];
   394     NSMutableArray *mapArray = [[NSMutableArray alloc] init];
   395     NSMutableArray *mapArray = [[NSMutableArray alloc] init];