From 87ce45dcb194c76d08453243e1b75bfd1fb93e8b Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 18 May 2016 09:52:48 +0200 Subject: [PATCH 1/4] Fixed: Delay when logging in --HG-- branch : develop --- code/ryzom/common/src/game_share/http_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/ryzom/common/src/game_share/http_client.cpp b/code/ryzom/common/src/game_share/http_client.cpp index 3e100c762..b21519014 100644 --- a/code/ryzom/common/src/game_share/http_client.cpp +++ b/code/ryzom/common/src/game_share/http_client.cpp @@ -124,6 +124,7 @@ bool CHttpClient::sendRequest(const std::string& methodWB, const std::string &ur std::string request; request += methodWB + " " + path + " HTTP/1.1\r\n"; request += "Host: " + host + "\r\n"; + request += "Connection: close\r\n"; // Send if (cookieName.empty() && postParams.empty()) From 8f3f6075bb3775cc0041b1dae775bbff97061ebd Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 18 May 2016 09:53:36 +0200 Subject: [PATCH 2/4] Changed: Configure button action --HG-- branch : develop --- .../client/ryzom_installer/src/mainwindow.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp index 0ead4615e..c98734406 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp @@ -98,6 +98,25 @@ void CMainWindow::onPlayClicked() void CMainWindow::onConfigureClicked() { + int profileIndex = profilesComboBox->currentIndex(); + + if (profileIndex < 0) return; + + CProfile profile = CConfigFile::getInstance()->getProfile(profileIndex); + + if (profile.server.isEmpty()) return; + + CServer server = CConfigFile::getInstance()->getServer(profile.server); + + if (server.configurationFilename.isEmpty()) return; + + QStringList arguments; + arguments << "-p"; + arguments << QString::number(profileIndex); + + bool started = QProcess::startDetached(server.configurationFilename, arguments); + + CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex); } void CMainWindow::onProfiles() From a3f85fa8cd96fb5903f0186a8882db4aed69329e Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 18 May 2016 09:56:22 +0200 Subject: [PATCH 3/4] Changed: Save/load configuration filename --HG-- branch : develop --- code/ryzom/tools/client/ryzom_installer/src/configfile.cpp | 6 ++++++ code/ryzom/tools/client/ryzom_installer/src/configfile.h | 1 + 2 files changed, 7 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp index e7d883314..20ec6544b 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp @@ -82,10 +82,13 @@ bool CConfigFile::load(const QString &filename) server.clientDownloadFilename = settings.value("client_download_filename").toString(); #if defined(Q_OS_WIN) server.clientFilename = settings.value("client_filename_windows").toString(); + server.configurationFilename = settings.value("configuration_filename_windows").toString(); #elif defined(Q_OS_MAC) server.clientFilename = settings.value("client_filename_osx").toString(); + server.configurationFilename = settings.value("configuration_filename_osx").toString(); #else server.clientFilename = settings.value("client_filename_linux").toString(); + server.configurationFilename = settings.value("configuration_filename_linux").toString(); #endif server.comments = settings.value("comments").toString(); @@ -154,10 +157,13 @@ bool CConfigFile::save() const settings.setValue("client_download_filename", server.clientDownloadFilename); #if defined(Q_OS_WIN) settings.setValue("client_filename_windows", server.clientFilename); + settings.setValue("configuration_filename_windows", server.configurationFilename); #elif defined(Q_OS_MAC) settings.setValue("client_filename_osx", server.clientFilename); + settings.setValue("configuration_filename_osx", server.configurationFilename); #else settings.setValue("client_filename_linux", server.clientFilename); + settings.setValue("configuration_filename_linux", server.configurationFilename); #endif settings.setValue("comments", server.comments); diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.h b/code/ryzom/tools/client/ryzom_installer/src/configfile.h index 8909e39e6..9fcced465 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.h +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.h @@ -35,6 +35,7 @@ struct CServer QString clientDownloadUrl; QString clientDownloadFilename; QString clientFilename; + QString configurationFilename; QString comments; }; From cc72b3e2a1406627c86b72fd131d7ef102e483cd Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 18 May 2016 09:56:43 +0200 Subject: [PATCH 4/4] Fixed: Typo in comment --HG-- branch : develop --- code/ryzom/tools/client/ryzom_installer/src/configfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp index 20ec6544b..1aa5bad04 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/configfile.cpp @@ -348,7 +348,7 @@ QString CConfigFile::getClientArch() const #if defined(Q_OS_WIN) return QString("win%1").arg(m_use64BitsClient ? 64:32); #elif defined(Q_OS_MAC) - // only 64 bits clients under OS X, becure there not any 32 bits OS X version anymore + // only 64 bits clients under OS X, because there not any 32 bits OS X version anymore return "osx"; #else return QString("linux%1").arg(m_use64BitsClient ? 64:32);