23 lines
517 B
C++
23 lines
517 B
C++
#include "CCEngineLoader.h"
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <boost/filesystem.hpp>
|
|
namespace fs = boost::filesystem;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
auto appDir = fs::system_complete(a.arguments().at(0).toStdString()).parent_path();
|
|
|
|
unsigned long parentProcessId = 0;
|
|
if (a.arguments().size() >= 2)
|
|
{
|
|
parentProcessId = a.arguments().at(1).toInt();
|
|
}
|
|
|
|
CCEngineLoader w(appDir, parentProcessId);
|
|
w.show();
|
|
return a.exec();
|
|
}
|