Core/PacketIO: Renamed a bunch of opcodes based on more research (only those added after 6.0)
Port From (https://github.com/TrinityCore/TrinityCore/commit/f922c6e7a46a7c712daaaef9b1a72ca865fbe94b)
This commit is contained in:
@@ -320,8 +320,8 @@ namespace Game.Networking
|
||||
connectToFailed.Read();
|
||||
HandleConnectToFailed(connectToFailed);
|
||||
break;
|
||||
case ClientOpcodes.EnableEncryptionAck:
|
||||
HandleEnableEncryptionAck();
|
||||
case ClientOpcodes.EnterEncryptedModeAck:
|
||||
HandleEnterEncryptedModeAck();
|
||||
break;
|
||||
default:
|
||||
if (_worldSession == null)
|
||||
@@ -643,7 +643,7 @@ namespace Game.Networking
|
||||
// RBAC must be loaded before adding session to check for skip queue permission
|
||||
_worldSession.GetRBACData().LoadFromDBCallback(result);
|
||||
|
||||
SendPacket(new EnableEncryption(_encryptKey, true));
|
||||
SendPacket(new EnterEncryptedMode(_encryptKey, true));
|
||||
}
|
||||
|
||||
void HandleAuthContinuedSession(AuthContinuedSession authSession)
|
||||
@@ -703,7 +703,7 @@ namespace Game.Networking
|
||||
// only first 16 bytes of the hmac are used
|
||||
Buffer.BlockCopy(encryptKeyGen.Digest, 0, _encryptKey, 0, 16);
|
||||
|
||||
SendPacket(new EnableEncryption(_encryptKey, true));
|
||||
SendPacket(new EnterEncryptedMode(_encryptKey, true));
|
||||
AsyncRead();
|
||||
}
|
||||
|
||||
@@ -746,7 +746,7 @@ namespace Game.Networking
|
||||
|
||||
}
|
||||
|
||||
void HandleEnableEncryptionAck()
|
||||
void HandleEnterEncryptedModeAck()
|
||||
{
|
||||
_worldCrypt.Initialize(_encryptKey);
|
||||
if (_connectType == ConnectionType.Realm)
|
||||
|
||||
Reference in New Issue
Block a user