mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
Fixed: Don't append empty login, password or shard ID to batch
This commit is contained in:
parent
d4dbbe8375
commit
5d22bec11a
1 changed files with 13 additions and 5 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue