mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-01 03:13:50 +00:00
refactor: extract toHexString utility, more color constants, final cast cleanup
Add core::toHexString() utility in logger.hpp to replace 11 duplicate hex-dump loops across world_packets, world_socket, and game_handler. Add kColorBrightGreen/kColorDarkGray constants in game_screen.cpp replacing 26 inline literals. Replace remaining ~37 C-style casts in 16 files. Normalize keybinding_manager.hpp to #pragma once.
This commit is contained in:
parent
ba99d505dd
commit
eea205ffc9
5 changed files with 63 additions and 96 deletions
|
|
@ -703,11 +703,8 @@ bool GameHandler::connect(const std::string& host,
|
|||
this->realmId_ = realmId;
|
||||
|
||||
// Diagnostic: dump session key for AUTH_REJECT debugging
|
||||
{
|
||||
std::string hex;
|
||||
for (uint8_t b : sessionKey) { char buf[4]; snprintf(buf, sizeof(buf), "%02x", b); hex += buf; }
|
||||
LOG_INFO("GameHandler session key (", sessionKey.size(), "): ", hex);
|
||||
}
|
||||
LOG_INFO("GameHandler session key (", sessionKey.size(), "): ",
|
||||
core::toHexString(sessionKey.data(), sessionKey.size()));
|
||||
requiresWarden_ = false;
|
||||
wardenGateSeen_ = false;
|
||||
wardenGateElapsed_ = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue