69 // merge not needed as format rarely changes |
69 // merge not needed as format rarely changes |
70 |
70 |
71 // SCHEMES - always overwrite and delete custom ones |
71 // SCHEMES - always overwrite and delete custom ones |
72 if ([[NSFileManager defaultManager] fileExistsAtPath:SCHEMES_DIRECTORY()] == YES) |
72 if ([[NSFileManager defaultManager] fileExistsAtPath:SCHEMES_DIRECTORY()] == YES) |
73 [[NSFileManager defaultManager] removeItemAtPath:SCHEMES_DIRECTORY() error:NULL]; |
73 [[NSFileManager defaultManager] removeItemAtPath:SCHEMES_DIRECTORY() error:NULL]; |
74 NSString *baseSchemesDir = [[NSString alloc] initWithFormat:@"%@/Settings/Schemes/",resourcesDir]; |
74 createSchemeNamed(@"Default", 0); |
75 [[NSFileManager defaultManager] copyItemAtPath:baseSchemesDir toPath:SCHEMES_DIRECTORY() error:NULL]; |
75 createSchemeNamed(@"Pro Mode", 1); |
76 [baseSchemesDir release]; |
76 createSchemeNamed(@"Shoppa", 2); |
|
77 createSchemeNamed(@"Clean Slate", 3); |
|
78 createSchemeNamed(@"Minefield", 4); |
|
79 createSchemeNamed(@"Barrel Mayhem", 5); |
|
80 createSchemeNamed(@"Tunnel Hogs", 6); |
|
81 createSchemeNamed(@"Fort Mode", 7); |
|
82 createSchemeNamed(@"Timeless", 8); |
|
83 createSchemeNamed(@"Thinking with Portals", 9); |
|
84 createSchemeNamed(@"King Mode", 10); |
77 |
85 |
78 // WEAPONS - always overwrite |
86 // WEAPONS - always overwrite |
79 if ([[NSFileManager defaultManager] fileExistsAtPath:WEAPONS_DIRECTORY()] == NO) |
|
80 [[NSFileManager defaultManager] createDirectoryAtPath:WEAPONS_DIRECTORY() |
|
81 withIntermediateDirectories:YES |
|
82 attributes:nil |
|
83 error:NULL]; |
|
84 createWeaponNamed(@"Default", 0); |
87 createWeaponNamed(@"Default", 0); |
85 createWeaponNamed(@"Crazy", 1); |
88 createWeaponNamed(@"Crazy", 1); |
86 createWeaponNamed(@"Pro Mode", 2); |
89 createWeaponNamed(@"Pro Mode", 2); |
87 createWeaponNamed(@"Shoppa", 3); |
90 createWeaponNamed(@"Shoppa", 3); |
88 createWeaponNamed(@"Clean Slate", 4); |
91 createWeaponNamed(@"Clean Slate", 4); |