- 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]>
39 lines
1.6 KiB
C++
39 lines
1.6 KiB
C++
#include "ShadowQuery.h"
|
|
#include "Engine/Source/ConsoleBase/ConsoleVar.h"
|
|
#include "Engine/Source/ConsoleBase/Types.h"
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
|
|
// STATIC: 0x00D25320
|
|
ShadowQueryBuffers CShadowQuery::s_unk_D25320[3];
|
|
|
|
// VERIFY: a0192ad6 auto
|
|
// OFFSET: 0x007BD3A0
|
|
void CShadowQuery::Initialize() {
|
|
CShadowCache::SetMatrixCallback(CShadowQuery::MatrixCallback);
|
|
CShadowCache::SetFrustumCallback(CShadowQuery::FrustumCallback);
|
|
CShadowCache::SetQueryCallback(CShadowQuery::QueryCallback);
|
|
CShadowCache::SetRenderCallback(CShadowQuery::RenderCallback);
|
|
|
|
g_shadowCull = CVar::Register("shadowCull", "enable shadow frustum culling", 0, "1", nullptr, CATEGORY_DEFAULT, false, nullptr, false);
|
|
g_shadowScissor = CVar::Register("shadowScissor", "enable scissoring when rendering shadowmaps", 0, "1", nullptr, CATEGORY_DEFAULT, false, nullptr, false);
|
|
g_shadowInstancing = CVar::Register("shadowInstancing", "enable instancing when rendering shadowmaps", 0, "1", nullptr, CATEGORY_DEFAULT, false, nullptr, false);
|
|
|
|
CShadowCache::Init();
|
|
}
|
|
|
|
// OFFSET: 0x007BA7D0
|
|
void CShadowQuery::FreeBuffers() {
|
|
for (ShadowQueryBuffers* buffers = CShadowQuery::s_unk_D25320; buffers < CShadowQuery::s_unk_D25320 + sizeof(CShadowQuery::s_unk_D25320) / sizeof(CShadowQuery::s_unk_D25320[0]); buffers++) {
|
|
if (buffers->unk_0004) {
|
|
SMemFree(buffers->unk_0004, nullptr, 0, 0);
|
|
}
|
|
|
|
if (buffers->unk_0008) {
|
|
SMemFree(buffers->unk_0008, nullptr, 0, 0);
|
|
}
|
|
|
|
delete[] buffers->unk_000C;
|
|
delete[] buffers->unk_0018;
|
|
}
|
|
}
|