2016-04-10 03:21:01 +05:30
|
|
|
//
|
|
|
|
// Created by robotbrain on 3/26/16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "WonkoClient.h"
|
2016-04-10 07:59:29 +05:30
|
|
|
#include <QCoreApplication>
|
2016-04-10 03:21:01 +05:30
|
|
|
#include <QDebug>
|
|
|
|
#include <QtWidgets/QInputDialog>
|
|
|
|
#include <QtGui/QDesktopServices>
|
|
|
|
#include <QDir>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2016-04-10 07:59:29 +05:30
|
|
|
QCoreApplication a(argc, argv);
|
2016-04-10 03:21:01 +05:30
|
|
|
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();
|
|
|
|
}
|