2016-04-09 22:51:01 +01:00
|
|
|
//
|
|
|
|
// Created by robotbrain on 3/26/16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "WonkoClient.h"
|
2016-04-10 03:29:29 +01:00
|
|
|
#include <QCoreApplication>
|
2016-04-09 22:51:01 +01:00
|
|
|
#include <QDebug>
|
|
|
|
#include <QtWidgets/QInputDialog>
|
|
|
|
#include <QtGui/QDesktopServices>
|
|
|
|
#include <QDir>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2016-04-10 03:29:29 +01:00
|
|
|
QCoreApplication a(argc, argv);
|
2016-04-09 22:51:01 +01:00
|
|
|
if (a.arguments().contains("-d"))
|
|
|
|
{
|
|
|
|
int i = a.arguments().lastIndexOf("-d") + 1;
|
|
|
|
if (i < a.arguments().length())
|
|
|
|
{
|
|
|
|
QDir dir = QDir::current();
|
|
|
|
dir.cd(a.arguments()[i]);
|
|
|
|
QDir::setCurrent(dir.absolutePath());
|
|
|
|
qDebug() << "Using " << dir.absolutePath();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MMCC.initGlobalSettings();
|
|
|
|
MMCC.registerLists();
|
|
|
|
return a.exec();
|
|
|
|
}
|