Fixed: Don't append empty login, password or shard ID to batch
This commit is contained in:
parent
c70095d428
commit
d3f031f3ee
1 changed files with 13 additions and 5 deletions
|
@ -1029,13 +1029,21 @@ void CPatchManager::executeBatchFile()
|
|||
arguments += "\"" + RyzomFilename + "\" \"" + ClientPatchPath + "\" " + ClientRootPath + "\"";
|
||||
#endif
|
||||
|
||||
// append login and password
|
||||
arguments += " " + LoginLogin + " " + LoginPassword;
|
||||
// append login, password and shard
|
||||
if (!LoginLogin.empty())
|
||||
{
|
||||
arguments += " " + LoginLogin;
|
||||
|
||||
if (!LoginPassword.empty())
|
||||
{
|
||||
arguments += " " + LoginPassword;
|
||||
|
||||
if (!r2Mode)
|
||||
{
|
||||
arguments += " " + toString(LoginShardId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!launchProgram(batchFilename, arguments, false))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue