Fix application directory path

This commit is contained in:
Ryan Huffman 2016-10-03 15:45:19 -07:00
parent 224c35d568
commit ff8f45d36c

View file

@ -129,9 +129,8 @@ int main(int argc, const char* argv[]) {
parser.addOption(serverContentPathOption); parser.addOption(serverContentPathOption);
parser.parse(arguments); parser.parse(arguments);
if (parser.isSet(runServerOption)) { if (parser.isSet(runServerOption)) {
//QString serverPath = QFileInfo(arguments[0]).path(); QString applicationDirPath = QFileInfo(arguments[0]).path();
QString applicationDirPath = QCoreApplication::applicationDirPath(); QString serverPath = applicationDirPath + "/server-console/server-console.exe";
QString serverPath = "/server-console/server-console.exe";
qDebug() << "Application dir path is: " << applicationDirPath; qDebug() << "Application dir path is: " << applicationDirPath;
qDebug() << "Server path is: " << serverPath; qDebug() << "Server path is: " << serverPath;
QStringList args; QStringList args;