project_files/HedgewarsMobile/Classes/CreationChamber.m
changeset 6624 e049b5bb0ad1
parent 6104 117bdf4e7af9
child 6700 e04da46ee43c
equal deleted inserted replaced
6623:6bf169f1e97c 6624:e049b5bb0ad1
    29 +(void) createSettings {
    29 +(void) createSettings {
    30     NSUserDefaults *settings = [NSUserDefaults standardUserDefaults];
    30     NSUserDefaults *settings = [NSUserDefaults standardUserDefaults];
    31     [settings setObject:[NSNumber numberWithBool:NO] forKey:@"alternate"];
    31     [settings setObject:[NSNumber numberWithBool:NO] forKey:@"alternate"];
    32     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"music"];
    32     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"music"];
    33     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sound"];
    33     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sound"];
    34     [settings setObject:[NSNumber numberWithBool:NO] forKey:@"classic_menu"];
       
    35     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sync_ws"];
    34     [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sync_ws"];
    36 
    35 
    37     // don't overwrite these two strings when present
    36     // don't overwrite these two strings when present
    38     if ([settings objectForKey:@"username"] == nil)
    37     if ([settings objectForKey:@"username"] == nil)
    39         [settings setObject:@"" forKey:@"username"];
    38         [settings setObject:@"" forKey:@"username"];