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

Global veriables

This commit is contained in:
nordsoft 2022-11-08 20:47:01 +04:00
parent 9ffc50457a
commit e83870205e
3 changed files with 6 additions and 2 deletions

View File

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

View File

@ -22,6 +22,9 @@
#include "updatedialog_moc.h"
#include "main.h"
int __argc;
char ** __argv;
void MainWindow::load()
{
// Set current working dir to executable folder.

View File

@ -10,6 +10,7 @@
#pragma once
#include <QMainWindow>
#include <QStringList>
#include "main.h"
namespace Ui
{