project_files/HedgewarsMobile/Classes/CreationChamber.m
changeset 5207 4c9ae0f484da
parent 5206 db775bddf771
child 5376 ea8a74951948
equal deleted inserted replaced
5206:db775bddf771 5207:4c9ae0f484da
    28     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"music"];
    28     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"music"];
    29     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sound"];
    29     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sound"];
    30     [settings setObject:[NSNumber numberWithBool:NO] forKey:@"classic_menu"];
    30     [settings setObject:[NSNumber numberWithBool:NO] forKey:@"classic_menu"];
    31     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"enhanced"];
    31     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"enhanced"];
    32     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"multitasking"];
    32     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"multitasking"];
    33     [settings setObject:@"" forKey:@"username"];
    33 
    34     [settings setObject:@"" forKey:@"password"];
    34     // don't overwrite these two strings when present
       
    35     if ([settings objectForKey:@"username"] == nil)
       
    36         [settings setObject:@"" forKey:@"username"];
       
    37     if ([settings objectForKey:@"password"] == nil)
       
    38         [settings setObject:@"" forKey:@"password"];
    35 
    39 
    36     [settings synchronize];
    40     [settings synchronize];
    37 }
    41 }
    38 
    42 
    39 void createTeamNamed (NSString *nameWithoutExt) {
    43 void createTeamNamed (NSString *nameWithoutExt) {