project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m
changeset 5185 7607a64e1853
parent 5181 102fef5ca5fc
child 5208 878e551f0b4a
equal deleted inserted replaced
5184:bf7bba60ed93 5185:7607a64e1853
    50 
    50 
    51 #pragma mark -
    51 #pragma mark -
    52 #pragma mark View lifecycle
    52 #pragma mark View lifecycle
    53 -(void) viewDidLoad {
    53 -(void) viewDidLoad {
    54     [super viewDidLoad];
    54     [super viewDidLoad];
    55     NSString *path = nil;
       
    56 
    55 
    57     // title, description, image name (+btn)
    56     // title, description, image name (+btn)
    58     path = [NSString stringWithFormat:@"%@/gameFlags_en.plist",IFRONTEND_DIRECTORY()];
    57     NSArray *mods = [[NSArray alloc] initWithContentsOfFile:GAMEMODS_FILE()];
    59     NSArray *mods = [[NSArray alloc] initWithContentsOfFile:path];
       
    60     self.gameModifierArray = mods;
    58     self.gameModifierArray = mods;
    61     [mods release];
    59     [mods release];
    62 
    60 
    63     // title, image name (+icon), default value, max value, min value
    61     // title, image name (+icon), default value, max value, min value
    64     path = [NSString stringWithFormat:@"%@/basicFlags_en.plist",IFRONTEND_DIRECTORY()];
    62     NSArray *basicSettings = [[NSArray alloc] initWithContentsOfFile:BASICFLAGS_FILE()];
    65     NSArray *basicSettings = [[NSArray alloc] initWithContentsOfFile:path];
       
    66     self.basicSettingList = basicSettings;
    63     self.basicSettingList = basicSettings;
    67     [basicSettings release];
    64     [basicSettings release];
    68 
    65 
    69     self.title = NSLocalizedString(@"Edit scheme preferences",@"");
    66     self.title = NSLocalizedString(@"Edit scheme preferences",@"");
    70 }
    67 }