11 Commits
Author SHA1 Message Date
SatyandClaude Opus 5.5 55d90d30ce Port ImageWriter; decompile Blizzard's libjpeg 6b
- libjpeg moved from ThirdParty/jpeg to Engine/Source/jpeg: stock 6b
  compression side plus Blizzard's changes (int boolean, error_flag
  instead of exit, source_pixels in jpeg_compress_struct, unscaled
  jpeg_add_quant_table, hook-pointer memory backend), all 140 functions
  OFFSET-tagged and verified
- jmemsrc.c: Blizzard's in-memory BGR(A) source (jinit_read_mem)
- ImageWriter: LDPC encoder, rect layout, block embedding, JPEG writer
  and the four API functions, verified against 12340
- THIRD_PARTY.md: libjpeg marked done

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 22:54:39 +02:00
SatyandClaude Opus 5.5 379ad35540 Third party: FreeType 2.0 (was 2.0.1), libjpeg 6b + Blizzard jmem backend
- FreeType: 12340's autohinter has no 2.0.1 glyph-transform code (ah_hinter_load_glyph 0x9A7E00,
  ah_hinter_load 0x9A7840); swap to tag VER-2-0, drops the FT_Matrix_Invert reference
- libjpeg 6b from ijg.org (makefile.vc LIBOBJECTS, jconfig.vc as jconfig.h), stock jmemnobs.c left out
- Engine/Source/jpeg/jmemnobs.cpp: Blizzard's hook-based memory backend (0x4AAF60-0x4AAFD0), target jpegmem
- THIRD_PARTY.md: versions/evidence, SPIRIT IP-MR listed as not available

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 19:40:06 +02:00
SatyandClaude Opus 5.5 b76f1b443a Port packs w3-w5: objects/vehicles, LCD stack, ComSat voice chat, map dtors, misc missing functions
- Object/vehicle/spell-visual/world/MapObj functions from pack w3
- Logitech LCD stack (CLCDBase..CLCDConnection, CLCDText/Bitmap/Page, CEzLcd, CEzLcdPage, CLCDUtils) and CGLCD
- ComSat client: voice start/stop, mute, sound group fade, tick, event dispatch; s_comsatCallbacks is a growable array
- ShipPath pause/offset, Transport state progress, vehicle bone anim/passenger removal, NetClient redirect
- Map class destructors (CMapArea/Chunk/DoodadDef/Entity/ObjDefGroup), CMapChunk +0xB4 is a TSLink
- Character rename/customize, ClientServices login/survey wrappers, glue Lua scripts, DayNight light overrides
- Template instance and deleting-dtor OFFSETs

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 03:16:42 +02:00
SatyandClaude Opus 5.5 095603ff2b Client bring-up: login, realm list, world auth, character select
- 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]>
2026-09-28 02:39:56 +02:00
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
SatyandClaude Opus 5.5 34770ee7ab Frame: port Engine/Frame (waves 1-4), 1667 of 1669 functions
Core (CSimpleFrame + Lua, CSimpleTop/CFrameStrata/CSimpleRender/
CRenderBatch, CSimpleRegion/CBackdropGenerator/CScriptRegion), animation,
text (FontString/Font/Fontable), texture and model, buttons, EditBox,
MessageFrame/MessageScrollFrame, MovieFrame/ColorSelect/StatusBar,
Slider/ScrollFrame/HTML/HyperlinkedFrame, all Lua method tables and
RegisterScriptMethods. Layouts, vtables and sizes rebuilt from the
12340 ctors, vtables and allocator initializers; CScriptObject vtable
slots 5/6 fixed; CSimpleFontedFrame is a real secondary base. Lua error
paths return after luaL_error as in 12340 (209 sites; 5 fall through).
Binary quirks kept and documented in docs/.

Supporting additions: Event key/char/ime/focus/size event headers,
Scrn/Scrn.h (ScrnLayerCreate), DivxDecoder import declarations,
C2Vector/CRect helpers, CM2Light dtor, OsInputEnableSecureMode, stpl.h
instance addresses, FrameXML LoadXML_AnimGroup/Create_SimpleMovieFrame.
Engine->WoW includes where 12340 calls directly: CSimpleModelFFX,
StringToMouseButton, GetDeclinedWord, EmblemTextureUpdate.

Also drops stale VERIFY stamps found invalid by the harness recheck.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 15:32:18 +02:00
SatyandClaude Opus 5.5 a034d31ded ThirdParty: add expat 1.95.5 (the version in 12340)
XML_ParserCreate_MM (0x9B0310) allocates 0x290 bytes, sizeof(struct
XML_ParserStruct) of 1.95.5 (1.95.6 is 472); the error table stops before
"unbound prefix" (1.95.7) and the XML_GetFeatureList strings exist (1.95.5+).

Official release tarball, unmodified; built like lib/expat_static.dsp
(COMPILED_FROM_DSP, _LIB), users get _STATIC. FrameXML links it and
XMLTree.cpp uses the real expat.h instead of the hand-written Expat.h.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 00:57:44 +02:00
SatyandClaude Opus 5.5 da9dee8463 ThirdParty: add FreeType 2.0.1 (the version in 12340)
Identified from the binary: ftgrays clipping and sweep predate 2.0.2,
the module list is the stock 2.0.1 ftmodule.h. Source is the GitLab
tag archive VER-2-0-1, unmodified; static target `freetype` built from
the per-module single-file sources.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 22:20:06 +02:00
SatyandClaude Opus 5.5 d8745e6b09 D3D pass 3: device lifecycle, scene, present, draw
Device creation (DeviceCreate x2, ICreateD3d, DeviceSetFormat,
ICreateWindow, ISetPresentParms, ISetCaps, ICreateD3dDevice), frame
(ISceneBegin, ScenePresent, SceneClear, Draw, IStateSetD3DDefaults),
teardown and resource release, DeviceWM, texture recreation.
CGxDevice::WaitForFPSCap and AdjustWindowRectToWorkArea (Win32/Win64);
Os time snapshot, OsGetAsyncTimeMs, OsSleep, last-error string.
Vendors NVIDIA NVAPI (MIT) into ThirdParty/nvapi, linked into Gx on
Windows.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 01:54:41 +02:00
SatyandClaude Opus 5.5 e8e62b2a47 Add LZMA SDK 4.57 decoder; port LzmaMemDecode
ThirdParty/lzma (LzmaDecode.c/.h, LzmaTypes.h, unmodified) as target
lzma, linked by BlizzardCore. Blizzard's LzmaMemDecode wrapper
(0x463FD0) ported in Mopaq/SComp.cpp. THIRD_PARTY.md lists it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 18:29:53 +02:00
SatyandClaude Opus 5.5 6b35480096 Add ThirdParty zlib 1.2.2, blast and bzip2 1.0.2
Pristine library sources, linked not decompiled (THIRD_PARTY.md). zlib from
thunderbrew/vendor, identical to the zlib.net fossil apart from line endings;
blast is zlib's contrib/blast 1.1; bzip2 from sourceware. Our only file is
ThirdParty/CMakeLists.txt; Storm links all three.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 00:18:51 +02:00