|
|
@ -137,6 +137,10 @@ void CMainWindow::onPlayClicked()
|
|
|
|
arguments << profile.id;
|
|
|
|
arguments << profile.id;
|
|
|
|
arguments << profile.arguments.split(' ');
|
|
|
|
arguments << profile.arguments.split(' ');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef Q_OS_WIN32
|
|
|
|
|
|
|
|
QFile::setPermissions(executable, QFile::permissions(executable) | QFile::ExeGroup | QFile::ExeUser | QFile::ExeOther);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// launch the game with all arguments and from server root directory (to use right data)
|
|
|
|
// launch the game with all arguments and from server root directory (to use right data)
|
|
|
|
bool started = QProcess::startDetached(executable, arguments, server.getDirectory());
|
|
|
|
bool started = QProcess::startDetached(executable, arguments, server.getDirectory());
|
|
|
|
|
|
|
|
|
|
|
@ -164,6 +168,10 @@ void CMainWindow::onConfigureClicked()
|
|
|
|
arguments << "-p";
|
|
|
|
arguments << "-p";
|
|
|
|
arguments << profile.id;
|
|
|
|
arguments << profile.id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef Q_OS_WIN32
|
|
|
|
|
|
|
|
QFile::setPermissions(executable, QFile::permissions(executable) | QFile::ExeGroup | QFile::ExeUser | QFile::ExeOther);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
bool started = QProcess::startDetached(executable, arguments);
|
|
|
|
bool started = QProcess::startDetached(executable, arguments);
|
|
|
|
|
|
|
|
|
|
|
|
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
|
|
|
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
|
|
|