Core/BattleNet: fixed a crash when logging in via battle net and fixed login in general. Also added german locale module to allow german computers to log in via battlenet.

This commit is contained in:
Ovahlord authored and Aokromes committed 2018-08-17 01:15:51 +02:00
1 parent e40d933793
commit 5eb2511e85
2 files changed
+5 -2

No files matched your search

@@ -0,0 +1,4 @@
UPDATE `battlenet_components` SET `Build`= 0 WHERE `Program`= 'Tool';
DELETE FROM `battlenet_components` WHERE `Program`= 'WoW' AND `Platform`= 'deDE';
INSERT INTO `battlenet_components` (`Program`, `Platform`, `Build`) VALUES
('WoW', 'deDE', 15595);
+1 -2
View File
@@ -175,7 +175,7 @@ void Battlenet::Session::HandleLogonRequest(Authentication::LogonRequest const&
}
else
{
if (component.Program != "WoW" || AuthHelper::IsBuildSupportingBattlenet(component.Build))
if (component.Program != "WoW" || !AuthHelper::IsBuildSupportingBattlenet(component.Build))
logonResponse->SetAuthResult(AUTH_REGION_BAD_VERSION);
else
logonResponse->SetAuthResult(AUTH_USE_GRUNT_LOGON);
@@ -603,7 +603,6 @@ void Battlenet::Session::Start()
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_IP_INFO);
stmt->setString(0, ip_address);
stmt->setUInt32(1, inet_addr(ip_address.c_str()));
_queryProcessor.AddQuery(LoginDatabase.AsyncQuery(stmt).WithPreparedCallback(std::bind(&Battlenet::Session::CheckIpCallback, this, std::placeholders::_1)));
}