project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
changeset 11790 ac93cfc17365
parent 11219 c51ecb9bcf05
child 12871 2c06b1120749
equal deleted inserted replaced
11789:e2de320aaf69 11790:ac93cfc17365
    37     [super viewDidLoad];
    37     [super viewDidLoad];
    38 
    38 
    39     self.trPath = [NSString stringWithFormat:@"%@", LOCALE_DIRECTORY()];
    39     self.trPath = [NSString stringWithFormat:@"%@", LOCALE_DIRECTORY()];
    40     self.trFileName = [NSString stringWithFormat:@"%@.txt", [HWUtils languageID]];
    40     self.trFileName = [NSString stringWithFormat:@"%@.txt", [HWUtils languageID]];
    41     // fill the data structure that we are going to read
    41     // fill the data structure that we are going to read
    42     LoadLocaleWrapper([self.trPath UTF8String], [self.trFileName UTF8String]);
    42     LoadLocaleWrapper([self.trPath UTF8String], [DOCUMENTS_FOLDER() UTF8String], [self.trFileName UTF8String]);
    43 
    43 
    44     quantity = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));
    44     quantity = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));
    45     probability = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));
    45     probability = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));
    46     delay = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));
    46     delay = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));
    47     crateness = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));
    47     crateness = (char *)malloc(sizeof(char)*(HW_getNumberOfWeapons()+1));