equal
deleted
inserted
replaced
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]; |