[Logging] Add raw opcode when emu translated opcode is not found (OP_Unknown) via (C->S) (#2847)

This commit is contained in:
Chris Miles
2023-02-07 21:23:24 -06:00
committed by GitHub
parent 268879b414
commit 6b08ca51cc
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -643,10 +643,11 @@ void Clientlist::Process()
while (KeyValid && !(*it)->GetForceDisconnect() && (app = (*it)->ClientStream->PopPacket())) {
EmuOpcode opcode = app->GetOpcode();
auto o = (*it)->ClientStream->GetOpcodeManager();
LogPacketClientServer(
"[{}] [{:#06x}] Size [{}] {}",
OpcodeManager::EmuToName(app->GetOpcode()),
(*it)->ClientStream->GetOpcodeManager()->EmuToEQ(app->GetOpcode()),
o->EmuToEQ(app->GetOpcode()) == 0 ? app->GetProtocolOpcode() : o->EmuToEQ(app->GetOpcode()),
app->Size(),
(LogSys.IsLogEnabled(Logs::Detail, Logs::PacketClientServer) ? DumpPacketToString(app) : "")
);