1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Remove some ios specific flags

This commit is contained in:
nordsoft 2022-11-12 08:41:11 +04:00
parent e7a8466e2b
commit 3d60f079fb
2 changed files with 2 additions and 6 deletions

View File

@ -8,9 +8,8 @@
*
*/
#pragma once
#ifdef VCMI_IOS
extern int __argc;
extern char ** __argv;
#ifdef VCMI_IOS
extern "C" void launchGame(int argc, char * argv[]);
#endif

View File

@ -22,10 +22,8 @@
#include "updatedialog_moc.h"
#include "main.h"
#ifdef VCMI_IOS
int __argc;
char ** __argv;
#endif
void MainWindow::load()
{
@ -120,7 +118,6 @@ MainWindow::~MainWindow()
void MainWindow::startGame(const QStringList & args)
{
#ifdef Q_OS_IOS
__argc = args.size() + 1; //first argument is omitted
__argv = new char*[__argc];
__argv[0] = "vcmiclient";
@ -130,7 +127,7 @@ void MainWindow::startGame(const QStringList & args)
__argv[i] = new char[strlen(s)];
strcpy(__argv[i], s);
}
#ifdef Q_OS_IOS
logGlobal->warn("Starting game with the arguments: %s", args.join(" ").toStdString());
qApp->quit();
#else