Files
SAE-terra-aventura/main.cpp
T
2025-06-20 10:58:40 +02:00

28 lines
609 B
C++

#include "mainwindow.h"
#include "path.h"
#include <QApplication>
#include <step.h>
#include <QFile>
using namespace std;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
QFile file("data/parcours1.json");
if (!file.open(QIODevice::ReadOnly)) {
qWarning() << "Impossible d'ouvrir le fichier data/parcours1.json";
return -1;
}
Path* p = new Path(&file);
file.close();
QList<Path*> paths = w.getPath();
paths.append(p);
w.setPath(paths);
w.setCurrentPath(p);
w.exportHTMLMap();
//w.show();
return a.exec();
}