1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +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"]; NSArray<NSString *> * args = note.userInfo[@"args"];
const char * newArgv[args.count]; const char * newArgv[args.count];
[args enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) { NSUInteger i = 0;
newArgv[idx] = obj.UTF8String; for (NSString * obj in args)
}]; newArgv[i++] = obj.UTF8String;
startSDLManually(args.count, (char **)(newArgv)); startSDLManually(args.count, (char **)(newArgv));
}]; }];
return qt_main_wrapper(argc, argv); return qt_main_wrapper(argc, argv);