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 14:08:19 +04:00
parent b3aa87fe10
commit 0ad06af593

View File

@ -52,11 +52,11 @@ int client_main(int argc, char * argv[])
startGameObserver = nil; startGameObserver = nil;
NSArray<NSString *> * args = note.userInfo[@"args"]; NSArray<NSString *> * args = note.userInfo[@"args"];
const char * __block newArgv[args.count]; const char * newArgv[args.count];
[args enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) { [args enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) {
newArgv[idx] = obj.UTF8String; newArgv[idx] = obj.UTF8String;
}]; }];
startSDLManually(cnt, const_cast<char *>(newArgv)); startSDLManually(args.count, (char *)(newArgv));
}]; }];
return qt_main_wrapper(argc, argv); return qt_main_wrapper(argc, argv);
} }