- SPIRIT IP-MR voice codec (Engine/Source/ComSat/SPIRIT): all ~130
functions decompiled from 12340 (Intel C++ code, ported as plain C;
rsqrtss sites use _mm_rsqrt_ss). docs/0x0089F580.md.
- ComSatSoundCODEC state/table buffers sized from sizeof (x64 state is
larger than the Win32 13504 bytes).
- Blizzard::Using::Use and the per-module using statics.
- ComSatClient_Init, ComSatThread::Init, ComSatClientCallback.
- SteelSeries WowMouse / HidManagerImpl (Win32 + Win64), docs/0x008C3E40.md.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- move triage code to the folders of its binary neighbours (AreaList,
movement packet types, CClientObjCreate, CWOWClientStatus, SHA1,
Clamp, EmergencyMem, MippedImg, WowMouse, ...)
- merge HMAC template, OnGxRestartClearWorld and TIMESTAMPSTRUCT into
their natural headers
- delete superseded duplicates and unk-only placeholders
- tools: drop Triage library, fix Streaming stub signatures, remove
stubs now provided by BlizzardCore, MapViewer s_liquidTypeId
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Ports the stand-ins hit since run 85 and the follow-up script batches:
RaidInfo, PartyFrame, BarberShop, ArenaTeamInfo, SkillInfo, InputControl,
petitions/guild registrar, ItemText, Tutorial, ContainerFrame, QuestLog,
ActionBar, ClassTrainer, UIMacros, GuildBank, AuctionHouse and Commentator.
Fixes found on the way: AuctionHouse sell items are a fixed inline array
(IsItemForSell read garbage), GetSellItem returns the container GUID,
Commentator instance key is read/written as u32/u16/u8 and skirmish
commands send a u32 flag, GetArenaMember returns uint64 in edx:eax.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Port hit-order Lua stand-ins (unit tokens, tooltips, combat log filters and
current entry, bags/containers, quest POI, minimap, titles, world states,
trade, group roles, runes, mirror timers, saved-variable registration, Quit)
- LoadAddOn: real add-on loading (Blizzard_CombatLog etc. now load)
- CombatLogEntry::PushEvent: COMBAT_LOG_EVENT arguments
- World map chain: SetMapToCurrentZone, SetMap, GetWorldPosition, landmarks,
overlays, highlight, zones, dungeon levels, player position
- OpenArchives: locale index was off by one (enUS read the koKR DBC slot,
leaving zone/map names empty)
- Zone/area sound chain, invisible units (spline mode read size), raid/bag
crash fixes, stand-in console, waystone icon for all executables
- Coding-rule cleanups: statics/includes at the top, event enums, Lua
_Scripts layout
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Ports verified against 12340 that take the x64 client from character
login to a playable world:
- Camera: SetView/ResetView, motion, free-look facing, tracking, bobs,
liquid bump, world collision; camera Lua scripts
- Input: world frame key/mouse layers, default action, mouselook,
turn/pitch player, TurnOrAction/CameraOrSelectOrMove scripts
- Movement: legal facing range, turn/pitch/raw facing events, transport
status, move spline copy, unit update info, smooth facing, anim end
- Units: component and extended display init, model fade/scale,
entity sort table, RenderEntitys, split-body culling
- Interiors: WMO group bounds, BSP segment link query, face linking,
interior lighting
- Collision: CMap::QueryFacets closure with frustum queries and NDCClip
- UI: game UI mouse filters, client control state, faction standing
packet, many *_Scripts.cpp Lua tables; name generator dictionary fix
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- 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]>
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]>
Ports SFile::FileExists (0x424E50), SFile::FileGetIsLocalAmount
(0x4217E0) and the Mopaq helpers SFileGetFileDetails (0x460F00) and
SFileGetIsLocalAmount (0x461040). The older 0x421FC0 FileExists is
renamed FileExistsInArchives. Blizzard::Streaming::GetIsLocalAmount
(0x44F370) is declared only; BlpTest, DbcTest and MpqTest get stand-ins
so they link.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
232 SI2 functions (0x4C5900-0x4D2780 plus the DSP, voice chat, zone sound,
advanced kit property and internal code), in files named after the 12340
__FILE__ strings (SoundInterface2*.cpp) and best-guess splits after the
Mac SI3 files. Replaces the _Triage shells. External WoW callees are
declared only (GameTime, DBClient, Unit_C, Item_C, ObjectMgrClient,
ChatFrame, GameUI, CGWorldStateInfo, ComSatClient, SFile name overloads)
and tracked as open items.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- FMOD's win32/src/*_asm.s (11 SIMD/SSE routines) annotated; byte-identical
to 12340 with NASM -O0. %include "c32.mac".
- FMOD_Mpeg_Synth_FPU (0x94B920) as win32/src/fmod_codec_mpeg_asm.s,
byte-identical to 12340; synth calls it on Win32 x86, C synthC elsewhere.
- libFLAC 1.1.4 ia32 nasm (cpu_asm, lpc_asm; fixed_asm unused) added,
byte-identical to 12340; FLAC__CPU_IA32/HAS_NASM/USE_3DNOW on Win32.
- FMOD_SUPPORT_VSTPLUGIN/WINAMPPLUGIN on for Win32 (createDSP hookups);
4.30-only SystemI mVSTPluginsListHead/updateVSTPlugins removed
(SystemI stays 0x8668); DSPVSTPlugin loses the 4.30 idle support.
- ChannelI::updateSyncPoints: signed compares on the forward path.
- VERIFY stamps; CreateDetached and Octree::insertInternal re-stamped
manual (their auto passes came from harness bugs, now fixed).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The flags literal 0 is an int, which made new (0, __FILE__, __LINE__)
resolve to the CRT debug operator new(size_t, int, const char*, int)
instead of the Blizzard operator new(size_t, uint32_t, const char*,
int32_t). Pass 0u.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SFileOpenFileEx (4 args), SFileReadFile, SFileLoadFile, SFileGetFileSize,
SFileCloseFile, SFileGetArchiveName, ReadAdditionalAttributes with the
block CRC/filetime/MD5 setters, FillNewHashTable with ListfileParser,
IncreaseHashBits, Streaming::MakePartFileName, Storage::BuildVariantFileName.
MPQHEADER packed to 4 (was 48 bytes, shifting ARCHIVEREC by 8).
blast included as extern "C"; BlizzardCore links blast and zlib.
Tools/MpqTest: console test that opens an MPQ and loads a file.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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]>
System_SComp::Decompress and DecompressBlock, zlib (scratch-arena
allocators, inflate), PKWARE via blast, Storm's bzip2, LZMA wrapper
(alloc_wrap/free_wrap; LzmaMemDecode declared, decoder not yet linked),
RLE-zero, TempBuffer::Resize, LocalObject<ZlibAllocBuffer>.
LocalObject<T>::New is new T again; SFile flag is RawReadInfo.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
System_MPQEncrypt::Hash with its crypt/char tables, Blizzard::Util
hashlittle2/Hash32I, System_SFile BitPacked/HashEntryTable/
BlockEntryTable/BLOCKENTRY, System_MPQGlobals via
Blizzard::Lock::ConstructOnce, Blizzard::Process::Sleep.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
IOAlignUnit (12340's cache_read/cache_write are its Read/Write): MRU
block cache with GetCachedBlock/CleanCache/CleanCacheEntry, direct
whole-block transfers, sorted write-back, SetFileSize truncation.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
IOUnit base (pass-through slots), IORangeUnit, IOLockUnit (ScopedMutex
per slot), IOFileUnit on Blizzard::File with the native
CreateFileA read path (Win32/Win64), IOUnbufferedFileUnit (sector
aligned bounce buffer), IOUnitContainer bump allocator.
System_SFile::s_retryNativeRead; LocalObject<T>::New zero-initializes
(new T()) as in 12340. Streaming::CheckFileRange declared only.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
.gitignore ignored every Win32/ folder (Visual Studio build output
pattern), so files created in the new source Win32/ folders were left
out of the platform-folder commit while the code they took was removed
from the generic files. Source Win32/ folders are now un-ignored.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
System/Log (16 functions) and Thread::WaitForever. Storm SComp review:
ImaAdpcmCompress size compares are signed as in 12340. AllocSTL_raw and
CCritSect members marked INLINED; SSyncObject ctor out of the header.
Platform layout: Windows API code lives in <dir>/Win32/ (whole file in
#if WOWDECOMP_ARCH_32) with full copies in <dir>/Win64/ (ARCH_64);
no _M_X64 blocks inside files. Former W32/ and *_Win32.cpp files moved,
their headers are generic now. Win32 API calls moved out of generic
File/Log/Thread/Unicode/SCmd files; Storm SErr/SLog/SReg/SMsg moved
whole. CODING_RULES section 7, PORTING_64BIT "Platform folders".
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PassThrough, stream_read, the (unused) throttle layer, and
RemoveDirectoryAndContents with its callback and state. Streaming::
IsStreamedFile declared only. Statics moved to the top of File.cpp,
SErr.cpp and SComp.cpp (SComp compress helpers declared in SComp.h).
CODING_RULES: statics at the top, file-local static helpers below them.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
All 28 Win32 verbs of s_basestack in Filestack_Win32.cpp, overlapped vs
locked positioned I/O, attribute/flag conversion, LoadFile, SetLastError,
Unicode::ConvertUTF8to16 and the ToNative path converter, two debug
print helpers. FileInfo::m_regularFile is a bool.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Blizzard::File API (Open/Close/Read/Write/Exists/GetFileInfo/...),
the stacked filesystem core (file_init, HoistAll, Shutdown, static
stacks, null verbs), the thread-local error stack via LocalObject<T>.
FileFunc and ProcessDirCallback are cdecl in 12340.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
GetProcessPath/GetProcessDirectory, FromNativeName, Unicode::ConvertUTF16to8,
CPUID-based processor features with run-once init, and the TempBuffer<T,N>
stack/heap buffer (dtor 0x42ED70). AddErrorToStack now uses TempBuffer.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Port the ErrorStack functions, SetAssertHandler/CanonicalStr and the
two Blizzard::Memory::Free overloads (Mac 4.0.1 names). DefaultCallback
is declared only, pending File/Process. All ported functions verified
against the binary.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Port the Win32 time base (QPC calibration, timestamps, FILETIME
conversion) and the atomic, mutex and event wrappers. All functions
verified against the binary.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Port the Blizzard::String and path helpers (Mac 4.0.1 names, internal
System_String helpers), move the Using hash table and statics into
Using.h, and record the declarations-in-headers rule. All functions
verified against the binary.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Port the Using init/shutdown registry (Mac 4.0.1 names) and the
String::Copy it depends on. All functions verified against the binary.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Drop the inner BlizzardCore/ level, replace namespace-named files with
the real file names (Packages/Mopaq, Streaming, iounit, System/*), move
SFile::CreateOverlapped/DestroyOverlapped into Mopaq/SFile.cpp, and
exempt source folders from the Visual Studio .gitignore rules.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Storm moves under Engine/Source with its inner layout unchanged. All
includes use Engine/Source/Storm/..., Storm's include guards follow the
new path, and the top-level CMakeLists adds Engine/Source/Storm.
SFile.cpp (SFile::CreateOverlapped/DestroyOverlapped) moves to
Engine/Source/BlizzardCore.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>