mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Attemp to fix ios build
This commit is contained in:
parent
16ab5f9e02
commit
b3aa87fe10
@ -51,12 +51,12 @@ int client_main(int argc, char * argv[])
|
||||
[NSNotificationCenter.defaultCenter removeObserver:startGameObserver];
|
||||
startGameObserver = nil;
|
||||
|
||||
int cnt = note.userInfo[@"args"].count;
|
||||
char * newArgv[cnt];
|
||||
NSArray<NSString *> * args = note.userInfo[@"args"];
|
||||
const char * __block newArgv[args.count];
|
||||
[args enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) {
|
||||
newArgv[idx] = obj.UTF8String;
|
||||
}];
|
||||
startSDLManually(cnt, newArgv);
|
||||
startSDLManually(cnt, const_cast<char *>(newArgv));
|
||||
}];
|
||||
return qt_main_wrapper(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user