Core/Realms: Fix not being able to return to realm list.

This commit is contained in:
hondacrx
2021-01-21 14:59:11 -05:00
parent 43b298b830
commit 25e9382c6f
7 changed files with 147 additions and 266 deletions
+8 -1
View File
@@ -28,7 +28,14 @@ namespace Game
[WorldPacketHandler(ClientOpcodes.BattlenetRequest, Status = SessionStatus.Authed)]
void HandleBattlenetRequest(BattlenetRequest request)
{
Global.ServiceMgr.Dispatch(this, request.Method.GetServiceHash(), request.Method.Token, request.Method.GetMethodId(), new CodedInputStream(request.Data));
var handler = Global.ServiceMgr.GetHandler(request.Method.GetServiceHash(), request.Method.GetMethodId());
if (handler != null)
handler.Invoke(this, request.Method, new CodedInputStream(request.Data));
else
{
SendBattlenetResponse(request.Method.GetServiceHash(), request.Method.GetMethodId(), request.Method.Token, BattlenetRpcErrorCode.RpcNotImplemented);
Log.outDebug(LogFilter.SessionRpc, "{0} tried to call invalid service {1}", GetPlayerInfo(), request.Method.GetServiceHash());
}
}
[WorldPacketHandler(ClientOpcodes.ChangeRealmTicket, Status = SessionStatus.Authed)]