equal
deleted
inserted
replaced
395 NSString *ipcString = [[NSString alloc] initWithFormat:@"%d", ipcPort]; |
395 NSString *ipcString = [[NSString alloc] initWithFormat:@"%d", ipcPort]; |
396 NSString *localeString = [[NSString alloc] initWithFormat:@"%@.txt", [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode]]; |
396 NSString *localeString = [[NSString alloc] initWithFormat:@"%@.txt", [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode]]; |
397 CGRect screenBounds = [[UIScreen mainScreen] bounds]; |
397 CGRect screenBounds = [[UIScreen mainScreen] bounds]; |
398 NSString *wSize = [[NSString alloc] initWithFormat:@"%d", (int) screenBounds.size.width]; |
398 NSString *wSize = [[NSString alloc] initWithFormat:@"%d", (int) screenBounds.size.width]; |
399 NSString *hSize = [[NSString alloc] initWithFormat:@"%d", (int) screenBounds.size.height]; |
399 NSString *hSize = [[NSString alloc] initWithFormat:@"%d", (int) screenBounds.size.height]; |
400 const char **gameArgs = (const char**) malloc(sizeof(char *) * 8); |
400 const char **gameArgs = (const char**) malloc(sizeof(char *) * 9); |
401 |
401 |
402 /* |
402 /* |
403 size_t size; |
403 size_t size; |
404 // Set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space |
404 // Set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space |
405 sysctlbyname("hw.machine", NULL, &size, NULL, 0); |
405 sysctlbyname("hw.machine", NULL, &size, NULL, 0); |
433 gameArgs[3] = [[[self.systemSettings objectForKey:@"music"] stringValue] UTF8String]; //isMusicEnabled |
433 gameArgs[3] = [[[self.systemSettings objectForKey:@"music"] stringValue] UTF8String]; //isMusicEnabled |
434 gameArgs[4] = [localeString UTF8String]; //cLocaleFName |
434 gameArgs[4] = [localeString UTF8String]; //cLocaleFName |
435 gameArgs[5] = [[[self.systemSettings objectForKey:@"alternate"] stringValue] UTF8String]; //cAltDamage |
435 gameArgs[5] = [[[self.systemSettings objectForKey:@"alternate"] stringValue] UTF8String]; //cAltDamage |
436 gameArgs[6] = [wSize UTF8String]; //cScreenHeight |
436 gameArgs[6] = [wSize UTF8String]; //cScreenHeight |
437 gameArgs[7] = [hSize UTF8String]; //cScreenWidth |
437 gameArgs[7] = [hSize UTF8String]; //cScreenWidth |
|
438 gameArgs[8] = NULL; //recordFileName |
438 |
439 |
439 [wSize release]; |
440 [wSize release]; |
440 [hSize release]; |
441 [hSize release]; |
441 [localeString release]; |
442 [localeString release]; |
442 [ipcString release]; |
443 [ipcString release]; |