mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
fix(Core/Network): Rename AuthSession struct (#24428)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -329,7 +329,7 @@ bool WorldSocket::ReadHeaderHandler()
|
||||
return true;
|
||||
}
|
||||
|
||||
struct AuthSession
|
||||
struct ClientAuthSession
|
||||
{
|
||||
uint32 BattlegroupID = 0;
|
||||
uint32 LoginServerType = 0;
|
||||
@@ -528,7 +528,7 @@ void WorldSocket::SendPacket(WorldPacket const& packet)
|
||||
|
||||
void WorldSocket::HandleAuthSession(WorldPacket & recvPacket)
|
||||
{
|
||||
std::shared_ptr<AuthSession> authSession = std::make_shared<AuthSession>();
|
||||
std::shared_ptr<ClientAuthSession> authSession = std::make_shared<ClientAuthSession>();
|
||||
|
||||
// Read the content of the packet
|
||||
recvPacket >> authSession->Build;
|
||||
@@ -552,7 +552,7 @@ void WorldSocket::HandleAuthSession(WorldPacket & recvPacket)
|
||||
_queryProcessor.AddCallback(LoginDatabase.AsyncQuery(stmt).WithPreparedCallback(std::bind(&WorldSocket::HandleAuthSessionCallback, this, authSession, std::placeholders::_1)));
|
||||
}
|
||||
|
||||
void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSession, PreparedQueryResult result)
|
||||
void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<ClientAuthSession> authSession, PreparedQueryResult result)
|
||||
{
|
||||
// Stop if the account is not found
|
||||
if (!result)
|
||||
|
||||
@@ -65,7 +65,7 @@ struct ClientPktHeader
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
struct AuthSession;
|
||||
struct ClientAuthSession;
|
||||
|
||||
class AC_GAME_API WorldSocket final : public Socket<WorldSocket>
|
||||
{
|
||||
@@ -113,7 +113,7 @@ private:
|
||||
void SendPacketAndLogOpcode(WorldPacket const& packet);
|
||||
void HandleSendAuthSession();
|
||||
void HandleAuthSession(WorldPacket& recvPacket);
|
||||
void HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSession, PreparedQueryResult result);
|
||||
void HandleAuthSessionCallback(std::shared_ptr<ClientAuthSession> authSession, PreparedQueryResult result);
|
||||
void LoadSessionPermissionsCallback(PreparedQueryResult result);
|
||||
void SendAuthResponseError(uint8 code);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user