Fixed: Don't append empty login, password or shard ID to batch

--HG--
branch : develop
This commit is contained in:
kervala 2016-02-23 16:58:57 +01:00
parent 89d1c51408
commit e7645739a6

View file

@ -1029,13 +1029,21 @@ void CPatchManager::executeBatchFile()
arguments += "\"" + RyzomFilename + "\" \"" + ClientPatchPath + "\" " + ClientRootPath + "\""; arguments += "\"" + RyzomFilename + "\" \"" + ClientPatchPath + "\" " + ClientRootPath + "\"";
#endif #endif
// append login and password // append login, password and shard
arguments += " " + LoginLogin + " " + LoginPassword; if (!LoginLogin.empty())
{
arguments += " " + LoginLogin;
if (!LoginPassword.empty())
{
arguments += " " + LoginPassword;
if (!r2Mode) if (!r2Mode)
{ {
arguments += " " + toString(LoginShardId); arguments += " " + toString(LoginShardId);
} }
}
}
if (!launchProgram(batchFilename, arguments, false)) if (!launchProgram(batchFilename, arguments, false))
{ {