mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 09:58:46 +00:00
Fixed: Use full path to launch Ryzom client and pass profile argument
--HG-- branch : develop
This commit is contained in:
parent
21a84a3ed4
commit
587b63e1d1
1 changed files with 19 additions and 6 deletions
|
@ -149,15 +149,28 @@ void CClientConfigDialog::onClickPlay()
|
|||
{
|
||||
bool started = false;
|
||||
|
||||
QStringList arguments;
|
||||
|
||||
if (Args.haveArg("p"))
|
||||
{
|
||||
arguments << "-p" << QString::fromUtf8(Args.getArg("p").front().c_str());
|
||||
}
|
||||
|
||||
QString clientFullPath = QString::fromUtf8(Args.getProgramPath().c_str());
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
started = QProcess::startDetached( "ryzom_client_r.exe" );
|
||||
if( !started )
|
||||
QProcess::startDetached( "ryzom_client_d.exe" );
|
||||
#elif defined(Q_OS_MAC)
|
||||
started = QProcess::startDetached( "./Ryzom.app" );
|
||||
#ifdef _DEBUG
|
||||
clientFullPath += "ryzom_client_d.exe";
|
||||
#else
|
||||
started = QProcess::startDetached( "./ryzom_client" );
|
||||
clientFullPath += "ryzom_client_r.exe";
|
||||
#endif
|
||||
#elif defined(Q_OS_MAC)
|
||||
clientFullPath += "Ryzom";
|
||||
#else
|
||||
clientFullPath += "ryzom_client";
|
||||
#endif
|
||||
|
||||
started = QProcess::startDetached(clientFullPath, arguments);
|
||||
|
||||
onClickOK();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue