Files
wowdecomp/WoW/Source/Object/ObjectClient/Effect_C.cpp
T
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

75 lines
2.1 KiB
C++

#include "Effect_C.h"
#include <cstring>
#include "Engine/Source/Storm/H/storm.h"
#include "WoW/Source/DB/DBClient/DBClient.h"
// STATIC: 0x00ADA764
static const char* s_specialUnitEffectNames[] = {
"HARDCODED Footstep Water Run Spray",
"HARDCODED Footstep Water Walk Spray",
"HARDCODED Breath Underwater",
"HARDCODED Breath Cold",
"HARDCODED Loot Art",
"HARDCODED Unit Level Up",
"HARDCODED Mount Poof",
"HARDCODED Inebriated Bubbles",
"HARDCODED Meeting Stone Join",
"HARDCODED Reputation",
"HARDCODED Resist Spell",
"HARDCODED Achievement Base",
};
// STATIC: 0x00CA0504
static CEffect* s_effects;
// STATIC: 0x00CA0508
static CEffect* s_destroyedEffects;
// STATIC: 0x00CA050C
static int32_t s_specialUnitEffectIDs[sizeof(s_specialUnitEffectNames) / sizeof(s_specialUnitEffectNames[0])];
// VERIFY: 8db32f34 auto
// OFFSET: 0x006F7520
static int32_t BuildSpecialUnitEffectTable() {
memset(s_specialUnitEffectIDs, 0, sizeof(s_specialUnitEffectIDs));
for (int32_t i = 0; i < g_spellVisualEffectNameDB.m_numRecords; i++) {
SpellVisualEffectNameRec* rec = (i < 0 || i >= g_spellVisualEffectNameDB.m_numRecords) ? nullptr : &g_spellVisualEffectNameDB.m_records[i];
for (uint32_t effect = 0; effect < sizeof(s_specialUnitEffectNames) / sizeof(s_specialUnitEffectNames[0]); effect++) {
if (!SStrCmp(s_specialUnitEffectNames[effect], rec->m_name, STORM_MAX_STR)) {
s_specialUnitEffectIDs[effect] = rec->m_id;
break;
}
}
}
return 1;
}
// VERIFY: d8c1c6a0 auto
// OFFSET: 0x006F75E0
int32_t SpecialUnitEffectsInitialize() {
return BuildSpecialUnitEffectTable();
}
// VERIFY: 8276ea70 manual
// OFFSET: 0x006FA3C0
void CEffect::Destroy() {
while (s_destroyedEffects) {
CEffect* effect = s_destroyedEffects;
if (--effect->m_refCount == 0) {
delete effect;
}
}
while (s_effects) {
CEffect* effect = s_effects;
if (--effect->m_refCount == 0) {
delete effect;
}
}
}