1
0
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:
nordsoft 2022-11-10 16:02:11 +04:00
parent 6406157038
commit 8871c7abbd

View File

@ -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);