6 Commits
Author SHA1 Message Date
SatyandClaude Opus 5.5 dfae6719b7 Naming pass: 65 functions, 103 statics, 63 fields named from Mac symbols and behaviour
Evidence and confidence per rename in re/notes/310_naming_pass.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-04 09:27:29 +02:00
SatyandClaude Opus 5.5 bbf3de4926 Record skipped template instances and ChatChannel ctor
Template instance addresses added to stpl.h (TSList::UnlinkNode,
~TSHashTable deleting destructors, TSGrowableArray::SetCount,
~TSFixedArray) and WowClientDB::GetRecordByIndex. ChatChannel default
constructor 0x502960 ported (user-provided: sets +0x9C/+0xA0 to 1).
M2Shared.cpp: VERIFY re-stamp only.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-02 09:11:39 +02:00
SatyandClaude Opus 5.5 74f50d713b M2Shared: allocate x64 .anim and vertex overflow buffers near m_data
M2Array stores a signed 32-bit self-relative offset. On x64 a separate
heap block can lie more than 2 GB from m_data, so relocated low-priority
.anim sequence data wrapped and crashed in ProcessEventCallbacks.

Add OsAllocNear/OsFreeNear (Win64): reserve a block within 1.5 GB of an
anchor. x64 now uses it for .anim buffers (load, cancel, destructor) and
for the skin vertex overflow, which again follows the Win32 structure
(m_flags |= 8, freed in ~CM2Shared). Texture combo arrays keep growing
m_data. All new code is under WOWDECOMP_ARCH_64.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-02 08:35:26 +02:00
SatyandClaude Opus 5.5 0470ad7933 M2Shared: x64-safe combo/vertex arrays, ignore runtime header bits from files
- x64: texture combo, transform combo and converted vertex arrays are
  appended to a grown m_data buffer instead of separate heap blocks, so
  the self-relative 32-bit M2Array offsets always reach them; they are
  freed with m_data (destructor frees only on Win32)
- FinishLoading clears header bits 0x20/0x40 from the file; the client
  uses them to mark arrays it allocated, and later-expansion models set
  them, which made the destructor free a pointer into the file buffer

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-02 07:11:14 +02:00
SatyandClaude Opus 5.5 2203210f2b Model2: port the Model2 TUs
M2Model.cpp, M2Shared.cpp, M2Scene.cpp, CM2SceneRender.cpp, M2Light.cpp,
M2Cache.cpp and the new M2Data.cpp/.h (0x81C000-0x834900). Only the
std::sort internals for CModelBatch stay unported.

AnimationData lookups in ResolveSequenceFallback/SequenceFallbackById use
g_animationDataDB directly: 12340 inlines its record loads into M2Model.cpp.

Shared additions: CParticleEmitter2 vtable order and the plane/sphere/spline
emitters, CRibbonMat, Services/Camera.h, Base/SIMD, Base/ObjectAlloc.h (the
engine-side ObjectAlloc interface), CFacet, CAaRect, CiRange, the C44Matrix
16-float constructor and CMath fequal/fnotequal/FloatToInt64.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 00:28:21 +02:00
Saty 5137298335 Initial commit 2026-09-23 18:24:00 +02:00