mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 17:16:20 +00:00
Fixed: Don't append empty login, password or shard ID to batch
--HG-- branch : develop
This commit is contained in:
parent
89d1c51408
commit
e7645739a6
1 changed files with 13 additions and 5 deletions
|
@ -1029,12 +1029,20 @@ void CPatchManager::executeBatchFile()
|
|||
arguments += "\"" + RyzomFilename + "\" \"" + ClientPatchPath + "\" " + ClientRootPath + "\"";
|
||||
#endif
|
||||
|
||||
// append login and password
|
||||
arguments += " " + LoginLogin + " " + LoginPassword;
|
||||
|
||||
if (!r2Mode)
|
||||
// append login, password and shard
|
||||
if (!LoginLogin.empty())
|
||||
{
|
||||
arguments += " " + toString(LoginShardId);
|
||||
arguments += " " + LoginLogin;
|
||||
|
||||
if (!LoginPassword.empty())
|
||||
{
|
||||
arguments += " " + LoginPassword;
|
||||
|
||||
if (!r2Mode)
|
||||
{
|
||||
arguments += " " + toString(LoginShardId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!launchProgram(batchFilename, arguments, false))
|
||||
|
|
Loading…
Reference in a new issue