- Grunt login ported end to end (SRP6 challenge/proof, version checksum, realm list) and tested against a live server: authenticates, connects to the world server (auth session with proof-of-work, header crypt), receives the character list and shows character select - Glue: realm list UI, character select (list, models, scripts), character create screen + name generator, delete/rename/decline, Enter World up to the loading screen; loading screen drawing and progress - AccountData (times, update, upload/download), BannedAddOns, addon scan and addon info, client cache version, tutorial flags - Shutdown path at login state: world/map/liquid/weather teardown, NetClient, ComSat, streaming stop; Logitech LCD no-device path in Ui/UILCD/Windows - PCRE 5.0 vendored (core stock; chartables and the posix layer from 12340), ValidateName - Fixes: TSGrowableArray::CalcChunkSize clamps to >= 8 (crash on char list), CWorldScene liquid renderer allocation, CMapFootprintTexture element ctor, pointer render states on x64, CFrustum/CWFrustum layout, M2 draw callback arguments, 37 class/struct forward-declaration mismatches - IDB name sync (1217 names), verify aliases, harness large-element instantiation Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
115 lines
2.6 KiB
C++
115 lines
2.6 KiB
C++
#if defined(WOWDECOMP_ARCH_64)
|
|
|
|
#include "WoW/Source/Game/GameClient/WardenClient.h"
|
|
#include "Engine/Source/Base/CDataStore.h"
|
|
#include "Engine/Source/Os/TimeManager.h"
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
#include "Engine/Source/Storm/Source/SLock.h"
|
|
#include "WoW/Source/Net/Types.h"
|
|
#include "WoW/Source/WowSvcs/WowSvcsClient/ClientServices.h"
|
|
|
|
// STATIC: 0x00D31A58
|
|
static uint32_t s_lastProcessTime;
|
|
|
|
// STATIC: 0x00D31A60
|
|
static SCritSect s_wardenCritSect;
|
|
|
|
// OFFSET: 0x007DA850
|
|
static int32_t ReceiveWardenData(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg) {
|
|
if (msgId != SMSG_WARDEN_DATA) {
|
|
return 0;
|
|
}
|
|
|
|
s_wardenCritSect.Enter();
|
|
|
|
void* data;
|
|
msg->GetDataInSitu(data, msg->m_size - msg->m_read);
|
|
|
|
s_wardenCritSect.Leave();
|
|
|
|
return 1;
|
|
}
|
|
|
|
// OFFSET: 0x007DA3D0
|
|
void WardenClient_Process() {
|
|
s_wardenCritSect.Enter();
|
|
s_lastProcessTime = OsGetAsyncTimeMs();
|
|
s_wardenCritSect.Leave();
|
|
}
|
|
|
|
// OFFSET: 0x007DA420
|
|
void WardenClient_Destroy() {
|
|
s_wardenCritSect.Enter();
|
|
ClientServices::ClearMessageHandler(SMSG_WARDEN_DATA);
|
|
s_wardenCritSect.Leave();
|
|
}
|
|
|
|
// OFFSET: 0x007DA8C0
|
|
bool WardenClient_Initialize() {
|
|
s_wardenCritSect.Enter();
|
|
WardenClient_Destroy();
|
|
s_lastProcessTime = OsGetAsyncTimeMs();
|
|
ClientServices::SetMessageHandler(SMSG_WARDEN_DATA, ReceiveWardenData, nullptr);
|
|
s_wardenCritSect.Leave();
|
|
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x007DA190
|
|
CDataStore& operator<<(CDataStore& msg, const CWardenKey& key) {
|
|
for (uint32_t i = 0; i < sizeof(key.m_key); i++) {
|
|
msg.Put(key.m_key[i]);
|
|
}
|
|
|
|
return msg;
|
|
}
|
|
|
|
// OFFSET: 0x007DA1C0
|
|
CDataStore& operator>>(CDataStore& msg, CWardenKey& key) {
|
|
for (uint32_t i = 0; i < sizeof(key.m_key); i++) {
|
|
msg.Get(key.m_key[i]);
|
|
}
|
|
|
|
return msg;
|
|
}
|
|
|
|
// OFFSET: 0x007DA1F0
|
|
WardenCachedModule::WardenCachedModule() {
|
|
this->m_size = 0;
|
|
this->m_data = nullptr;
|
|
}
|
|
|
|
// OFFSET: 0x007DA200
|
|
WardenCachedModule::~WardenCachedModule() {
|
|
if (this->m_data) {
|
|
SMemFree(this->m_data, __FILE__, __LINE__, 0);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x007DA220
|
|
void WardenCachedModule::Pack(CDataStore* msg) {
|
|
msg->Put(this->m_data ? this->m_size : 0);
|
|
|
|
for (uint32_t i = 0; i < this->m_size; i++) {
|
|
msg->Put(this->m_data[i]);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x007DA260
|
|
void WardenCachedModule::Unpack(CDataStore* msg) {
|
|
msg->Get(this->m_size);
|
|
|
|
if (!this->m_size) {
|
|
this->m_data = nullptr;
|
|
return;
|
|
}
|
|
|
|
this->m_data = static_cast<uint8_t*>(SMemAlloc(this->m_size, __FILE__, __LINE__, 0));
|
|
|
|
for (uint32_t i = 0; i < this->m_size; i++) {
|
|
msg->Get(this->m_data[i]);
|
|
}
|
|
}
|
|
|
|
#endif
|