From 5a37077a96441c40b2e98e8501f26b3c0d8c78eb Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 18 Jun 2016 19:51:04 +0200 Subject: [PATCH] Fixed: Start client from server root directory --- code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp index 52109f703..27bd38a32 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp @@ -92,6 +92,7 @@ void CMainWindow::onPlayClicked() CConfigFile *config = CConfigFile::getInstance(); const CProfile &profile = config->getProfile(profileIndex); + const CServer &server = config->getServer(profile.server); // get full path of client executable QString executable = config->getProfileClientFullPath(profileIndex); @@ -104,8 +105,8 @@ void CMainWindow::onPlayClicked() arguments << profile.id; arguments << profile.arguments.split(' '); - // launch the game with all arguments - bool started = QProcess::startDetached(executable, arguments); + // launch the game with all arguments and from server root directory (to use right data) + bool started = QProcess::startDetached(executable, arguments, server.getDirectory()); // define this profile as default one CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);