cocoaTouch/MainMenuViewController.m
changeset 3332 3c90a923f156
parent 3325 652a8ebdf667
child 3335 2520ee7a5484
equal deleted inserted replaced
3331:8e05feb871c3 3332:3c90a923f156
    83     // create a team
    83     // create a team
    84     createTeamNamed(@"Default Team");
    84     createTeamNamed(@"Default Team");
    85     
    85     
    86     // create settings.plist
    86     // create settings.plist
    87     NSMutableDictionary *saveDict = [[NSMutableDictionary alloc] init];
    87     NSMutableDictionary *saveDict = [[NSMutableDictionary alloc] init];
    88 	
    88 
    89     [saveDict setObject:@"" forKey:@"username"];
    89     [saveDict setObject:@"" forKey:@"username"];
    90     [saveDict setObject:@"" forKey:@"password"];
    90     [saveDict setObject:@"" forKey:@"password"];
    91     [saveDict setObject:@"1" forKey:@"music"];
    91     [saveDict setObject:[NSNumber numberWithBool:YES] forKey:@"music"];
    92     [saveDict setObject:@"1" forKey:@"sounds"];
    92     [saveDict setObject:[NSNumber numberWithBool:YES] forKey:@"sound"];
    93     [saveDict setObject:@"0" forKey:@"alternate"];
    93     [saveDict setObject:[NSNumber numberWithBool:NO] forKey:@"alternate"];
    94 
    94 
    95     NSString *filePath = [[SDLUIKitDelegate sharedAppDelegate] dataFilePath:@"settings.plist"];
    95     NSString *filePath = [[SDLUIKitDelegate sharedAppDelegate] dataFilePath:@"settings.plist"];
    96     [saveDict writeToFile:filePath atomically:YES];
    96     [saveDict writeToFile:filePath atomically:YES];
    97     [saveDict release];    
    97     [saveDict release];    
    98     // create other files
    98     // create other files