mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Attempt to fix ios build
This commit is contained in:
parent
6406157038
commit
8871c7abbd
@ -53,9 +53,9 @@ int client_main(int argc, char * argv[])
|
||||
|
||||
NSArray<NSString *> * args = note.userInfo[@"args"];
|
||||
const char * newArgv[args.count];
|
||||
[args enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) {
|
||||
newArgv[idx] = obj.UTF8String;
|
||||
}];
|
||||
NSUInteger i = 0;
|
||||
for (NSString * obj in args)
|
||||
newArgv[i++] = obj.UTF8String;
|
||||
startSDLManually(args.count, (char **)(newArgv));
|
||||
}];
|
||||
return qt_main_wrapper(argc, argv);
|
||||
|
Loading…
Reference in New Issue
Block a user