Files
SatyandClaude Opus 5.5 2e418f9e08 Client bring-up: glue screen, EULA/TOS, shutdown chain, LCD, x64 fixes
- Stand-in client reaches the glue screens (intro movie, EULA/TOS accept,
  login screen) at 16:9; stand-ins are report-only on x64
- Ports on the startup/idle path: GlueScriptEvents/CharacterSelection/
  CharacterCreation/RealmList/AccountMsg/VideoOptions _Scripts, CGlueMgr
  (Initialize/Resume/Idle/Accept*/Shutdown), ClientServices, NetClient/
  WowConnection, DBCache + instances, WorldParam/World/Map/Liquid/Weather/
  shadow, InputControl, Scrn, ConsoleClient, SysMessage, LoadingScreen,
  SystemRegisterFunctions, CGameTime, Screen::GetAspectRatio
- Shutdown chain: BeginCloseGame, DestroyEngineCallback, DBCache save/
  destroy, SpellVisuals/Effect/World/Glue teardown
- Logitech LCD no-device path in Ui/UILCD/Windows (Windows-only dir);
  lgLcd is a stub library in ThirdParty/lgLcd
- CVar and console commands split into <Module>_CVar.cpp / _Console.cpp
- DivxDecoder.dll (Win32, original) and XvidDecoder.dll (x64, port with
  vendored xvidcore) both copied to the build folder
- Warden: Win32 faithful port, Win64 stub
- x64 fixes: lua_newstate gcusage/gctime init, pointer render states reset
  with nullptr, g_rndSeed defined
- 37 class/struct forward-declaration mismatches fixed (false stand-ins)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 21:47:34 +02:00

45 lines
1.5 KiB
C++

#include <cstdint>
#include <cstring>
#include "Engine/Source/Storm/H/stpl.h"
#include "WoW/Source/DB/DBClient/DBClient.h"
// STATIC: 0x00C5DEA8
static TSFixedArray<const ItemSubClassRec*> s_itemSubclasses[17];
// VERIFY: e9c59b21 manual
// OFFSET: 0x00681090
const ItemSubClassRec* SDBItemSubclassGetSubClassRec(uint32_t classID, uint32_t subClassID) {
if (classID >= sizeof(s_itemSubclasses) / sizeof(s_itemSubclasses[0]) || subClassID >= s_itemSubclasses[classID].Count()) {
return nullptr;
}
return s_itemSubclasses[classID][subClassID];
}
// VERIFY: 600df192 manual
// OFFSET: 0x006810C0
void SDBItemSubclassInitialize() {
int32_t counts[sizeof(s_itemSubclasses) / sizeof(s_itemSubclasses[0])];
memset(counts, 0, sizeof(counts));
for (int32_t i = 0; i < g_itemSubClassDB.m_numRecords; i++) {
const ItemSubClassRec* rec = i >= 0 && i < g_itemSubClassDB.m_numRecords ? &g_itemSubClassDB.m_records[i] : nullptr;
if (rec->m_classID >= 0 && counts[rec->m_classID] <= rec->m_subClassID) {
counts[rec->m_classID] = rec->m_subClassID + 1;
}
}
for (uint32_t i = 0; i < sizeof(s_itemSubclasses) / sizeof(s_itemSubclasses[0]); i++) {
s_itemSubclasses[i].SetCount(counts[i]);
}
for (int32_t i = 0; i < g_itemSubClassDB.m_numRecords; i++) {
const ItemSubClassRec* rec = i >= 0 && i < g_itemSubClassDB.m_numRecords ? &g_itemSubClassDB.m_records[i] : nullptr;
if (rec->m_classID >= 0) {
s_itemSubclasses[rec->m_classID][rec->m_subClassID] = rec;
}
}
}