equal
deleted
inserted
replaced
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)); |