mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 00:13:53 +02:00
Fix application directory path
This commit is contained in:
parent
224c35d568
commit
ff8f45d36c
1 changed files with 2 additions and 3 deletions
|
@ -129,9 +129,8 @@ int main(int argc, const char* argv[]) {
|
|||
parser.addOption(serverContentPathOption);
|
||||
parser.parse(arguments);
|
||||
if (parser.isSet(runServerOption)) {
|
||||
//QString serverPath = QFileInfo(arguments[0]).path();
|
||||
QString applicationDirPath = QCoreApplication::applicationDirPath();
|
||||
QString serverPath = "/server-console/server-console.exe";
|
||||
QString applicationDirPath = QFileInfo(arguments[0]).path();
|
||||
QString serverPath = applicationDirPath + "/server-console/server-console.exe";
|
||||
qDebug() << "Application dir path is: " << applicationDirPath;
|
||||
qDebug() << "Server path is: " << serverPath;
|
||||
QStringList args;
|
||||
|
|
Loading…
Reference in a new issue