51 Commits
Author SHA1 Message Date
SatyandClaude Opus 5.5 82879a879d Port the last non-anti-cheat functions: ServerLink, PetAction, emitter params
- Grunt::ServerLink: all CMD_GRUNT_* handlers, send helpers, features/strings, command table 0xB24D70,
  s_localeIds 0xAD3004, Pending::Remove (dead server-side link, docs/0x008CE200.md); ServerLink.h stub removed
- PetAction type for CGPetInfo::m_actions / pet spell actions / cursor pet action, SetAutocast 0x5D32F0
- CParticleEmitter2 fields 0x98-0x11F moved into CParticleEmitter2::Params (ctor 0x979250)
- fixed16(float), C3Vector::FlushDenormals, CGxuLightQueue + static 0xC7C074, CAaSphere(), CMapLowDetail(),
  C2Vector()/C4Plane() out of line, SpellHistory dtor, CGDynamicObject_C GetScale/GetRawFacing
- DB record operator= (PetNameCache, CGPetition, DanceCache): fixes the shallow-copy double free in AddItem
- ClientSetTimer(delay, handler, param) with its five callers, IOMd5Unit::Create without container,
  CDataStore::GetByte / Get(int32_t&), WDataStore::GetHeaderSpace, TSHashTable::Head, TSList::IsEmpty
- CameraTurnPlayer calls CVehicleCamera_C::IsTransitioningFacing 0x5FAA10 (was IsHierarchyChasingFacing)
- OFFSET additions: TSHashTable::Unlink, TInstanceId dtor, DBCACHEHASH dtor (+ ItemNameCache_C dtor),
  CDataStoreCache ctor, BitUnpacker/RunningAverageCalculator deleting dtors, CGTooltip::GetObjectType

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-04 08:10:06 +02:00
SatyandClaude Opus 5.5 07d00b0ce8 Port SPIRIT IP-MR codec, Using framework, ComSat client init, SteelSeries HID
- 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]>
2026-10-04 06:19:53 +02:00
SatyandClaude Opus 5.5 5c9a9c4aac Tag deleting dtors of IOLockUnit, CWOWClientStatus, SEFileSound, PageTextCache
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 18:19:46 +02:00
SatyandClaude Opus 5.5 27de58d41e Dissolve _Triage into the source tree
- 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]>
2026-10-03 18:09:53 +02:00
SatyandClaude Opus 5.5 211a43a44a Tag deleting dtors and ICF stubs, fix RepairCache key/record layout
- OFFSET tags for scalar deleting destructors of IOUnit, IOMpqUnit,
  IOMpqArchiveUnit, IOMpqDiskUnit, IOMpqReadUnit, IOAlignUnit, SFileImpl
- [dtor, ??_G] tags for IOMpqWriteUnit, ParameterItem, ServerItem,
  FileItem, TransportHttpCallback, TrackerHttpDataDownloadCallBack
- IOMpqArchiveReadUnit::Write 0x426880, LocalObject<SFileFatalInfo>::New
- RepairKey index is int64; RepairRecord {md5, index, offset, size};
  RepairEntry has no flags field (0x440B10/0x440BD0)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 17:22:16 +02:00
SatyandClaude Opus 5.5 c790ecb4a0 Port Streaming/Storage/Transport/HTTP, Mopaq write path and missing-function batches
- Streaming: StreamingManager, Manifests, Storage (.part files, write queue),
  Transport (HTTP split download, throttle), Tracker/StartupReport, streaming
  filestack verbs (s_streamstack, StreamingOpen), RepairCache static
- URL: HttpRequest, InternetCallback, ReadResponseData, DownloadURL
- Mopaq write path: SFileCreateArchive/CreateFile/WriteFile, IOMpqWriteUnit,
  WriteArchiveChanges, RebuildHashTable, listfile acquire/release;
  SComp::Compress with RLE/zlib/bzip2/pkware compressors; MPQEncrypt::Encrypt
- LaunchChildProcessWithArguments, Debug::DefaultCallback/Breakpoint
- Earlier batches: ComSat, Battlenet Tumor, Glue/Ui/WowServices fixes,
  luaL_error returns in Script_ files

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 16:51:23 +02:00
SatyandClaude Opus 5.5 393769ff36 Port single-missing-function modules
LeaveWorld handlers, game object type checks, corpse/dynamic object
virtuals, loot/voice/macro helpers, declined words, ProcessAgreement,
ObjectCreateStaticEx, FFX death/fog-seed/nether-blur passes, software
snow renderer, streaming decal, QuestCache copy, trajectory encoder and
deleting destructor tags. Fixes the missing CMapStaticEntity destructor
model release.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-02 14:39:43 +02:00
SatyandClaude Opus 5.5 6027112a59 Port stand-ins after run 85: UI script modules, AuctionHouse, Commentator
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]>
2026-10-02 04:14:58 +02:00
SatyandClaude Opus 5.5 3b76648777 Client bring-up: Lua stand-in ports, add-on loading, world map, combat log, locale fix
- 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]>
2026-09-30 06:31:10 +02:00
SatyandClaude Opus 5.5 18c46cb87e Client bring-up: in-world camera, input, movement, unit rendering
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]>
2026-09-29 23:04:53 +02:00
SatyandClaude Opus 5.5 4a571e727c World port: WMO water, fog, area updates, purge chain, detail doodads
- Barriers, shadow/portal queries, underwater selection, hit testing
- Interior water: PolyClipper, ClipGroupGeometry, liquid index fix
- Area updates, barrier updates, purge/free chain for areas, chunks,
  doodad and map object defs, detail doodad update list
- Water ripples, terrain pixel shader path, liquid shader toggles
- Detail doodads: creation per chunk, pools, batching, vertex/index
  fill, shader and fixed-function render state, RenderDetailDoodads
  (trailing occluder/debug draws still to port), CMapChunk::SelectLights
- DayNight moved to WoW/Source/WorldClient
- MapViewer: fog, WMO water, detail doodads; diagnostics removed

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-29 07:43:15 +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 472530e785 Client bring-up: WinMain to event loop, Engine/FFX port
Tool client (Tools/WowClient) with generated stand-ins now runs
InitializeGlobal completely: config, locale, MPQs, signature file,
hardware detect, D3D device, Storm log. Stops at InitializeEngineCallback.

- entry start 0x401000 (StormRtlInitialize before CRT), /ENTRY:start
- ConsoleDevice + ConsoleDetect module, GxDefaultApi
- SFile signature path (ClearAllFileFlags, SetFileSignature, HashMap insert)
- WowLogHeader + helpers, SMemIsValidPointer, ClntObjMgrIsValid
- ConsoleWrite line list, CGObject_C vtable declarations
- crash handler prints symbolized x64 stack
- Engine/FFX port (FFX agent), Pass headers moved out of _Triage

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 17:23:27 +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 d02b135887 BlizzardCore: SFile::FileExists and FileGetIsLocalAmount
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]>
2026-09-27 05:02:09 +02:00
SatyandClaude Opus 5.5 9243e0507a SoundInterface: port SI2 into WoW/Source/SoundInterface
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]>
2026-09-27 03:07:31 +02:00
SatyandClaude Opus 5.5 509a43e7cb SoundEngine: port 12340 SoundEngine.cpp (SE2), 146 definitions verified
SESoundInternal + file/memory/chat subclasses, SESound handle, wave cache,
channel groups, drivers, capture, Init/InitCapture/ShutDown. SoundCache.h
declared only. Adds CRndSeed::SetSeed, IsNaN, SFile::SetReadFatal,
FMOD_ErrorString OFFSET; SoundEngine becomes a static library. Note re/305.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 10:23:03 +02:00
SatyandClaude Opus 5.5 8fbb164623 fmodex: 12340's hand-written assembly, VST/Winamp hookups, syncpoint signedness
- 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]>
2026-09-26 08:30:11 +02:00
SatyandClaude Opus 5.5 f493121844 Texture T4: finish Texture.cpp, SysMsg printf
- Settings/accessors: filter mode, anisotropy, cache size, atlas, file
  helpers, ready/loaded/opaque checks, dimensions, ref count
- LoadBlpMips, TextureLoadImage, TextureDestroy, TextureGxCacheClear/Flush,
  TextureNotifyGxRestart, TextureCreate overloads, cache lookup/insert
- SysMsgVPrintf, SysMsgPrintf x2, CAsyncObject::IsPending
- CBLPFile ctor has an out-of-line copy (0x4B58D0)
- GxTest: TextureLoadImage check

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 21:49:55 +02:00
SatyandClaude Opus 5.5 fbde2def4e Texture T3: CTgaFile, TGA textures, MipBits cache, texture blobs
- Images/tga: packed TGAHeader/TGAFooter, all 23 CTgaFile methods
- TGA path: LoadTgaMips, LoadPredrawnMips, TextureGenerateMips,
  TextureCalcMipCount, UpdateTgaTexture, CreateTgaTexture, FullShrink
- MipBits cache: CMipBitsCache, TextureAllocMippedImg, TextureFreeMippedImg x2
- CTextureBlob module, UpdateBlobTexture, TextureCreateBlob, Load/UnloadBlob
- SFile::FileExistsEx, Os file constants, C4Pixel moved to BLPFile/Types.h
- GxTest --tga/--blob, BlpTest list

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 21:34:16 +02:00
SatyandClaude Opus 5.5 e866c1c2ad Texture T2: AsyncFile module, async texture handlers, GxTex cache update
- AsyncFile reader: queues, thread, alloc/free/cancel, priority queueing,
  poll/wait/wait-all, destroy; CAsyncQueue/CAsyncThread types and statics
- Texture: AsyncTexture success/failure/handler/status, TextureUpdate,
  TextureCacheUpdate, ResolveMipLevel
- SFile::IsStreamingMode, Streaming::IsStreamingMode, SFile::GetActualFileName,
  SysMsgAdd (both), empty SFile::SetFilePriority (folds into 0x47ADD0)
- CAsyncObject field types from users (SFileImpl*, uint8_t priority)
- GxTest --textures-async: runs the real async path

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 20:46:48 +02:00
SatyandClaude Opus 5.5 5a2919f977 Texture T1: CTexture, create path, GxTex cache, atlas, BLP upload
Ports 37 Texture.cpp functions from TextureCreate to the filled D3D
texture (cache, solid textures, PumpBlpTextureAsync, TextureAllocGxTex/
FreeGxTex reuse buckets, atlas, TextureGetGxTex, TextureInitialize),
GxuUpdateSingleColorTexture, GxTexReusable(CGxTex*), CGxTexFlags==,
CBLPFile ctor/dtor. Fixes CStatus Add overload order (vtable slots).
GxTest --textures reads back D3D levels; all match 12340 (note 298).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 19:59:26 +02:00
SatyandClaude Opus 5.5 64ad89ba54 SFile2-Core: bind placement new to Blizzard operator new
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]>
2026-09-25 00:29:09 +02:00
SatyandClaude Opus 5.5 7e3e0919ee SFile pass 4: client SFile layer, Os path helpers, SetPaths
SFile2-Core.cpp: SFile::Initialize (0x421700), paths, OpenArchive,
OpenPathAsArchive (+ Mopaq SFileOpenArchiveView), CloseArchive,
SFileImpl, OpenEx, FindFile/OldFindFile + loose-file hash,
SFileReadFile/CloseFile/GetFileSize/OpenFile, SetFilePointer,
ReadFile/LoadFile/Unload, RebuildHash, QueueAsyncOpen.
Memory: placement operator new/delete, Allocate(4).
String::Equal/EqualI/Length. Os/Path helpers. Client SetPaths.
Mopaq SFileGetFileSize gains unused sizeHigh; SFileSetFilePointer.
MpqTest: --sfile mode.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 20:09:54 +02:00
SatyandClaude Opus 5.5 1487e51212 Mopaq pass 3c: read/load/close, attributes, listfile; MpqTest tool
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]>
2026-09-24 19:36:01 +02:00
SatyandClaude Opus 5.5 d7aa20b79f Mopaq pass 3a/3b: file lookup and SFileOpenFileEx unit chain
3a: GetFileBlockEntry, FindFileInOneArchive, SearchHashTable,
ARCHIVEREC::GetBlockEntry/BuildBlockKeys, FindBlockEntry,
CheckFileExistsOnDisk, SFileFileExists, Digest<16> operators.
BLOCKENTRY m_fileTime/m_crc order fixed.

3b: IOMpqUnit family (archive/read-only/disk), IOChecksumUnit with
CRC and MD5 units, IOMpqReadUnit sector reader with worker pool,
Blizzard::Util::MD5, HashMap, signature table, IORangeUnit/IOAlignUnit
factories, ARCHIVEREC::SetMD5Check/SetBlockEntry, SFileOpenFileEx.
Folded-slot docs added.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 19:10:16 +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 d9105f017e BlizzardCore Mopaq pass 2c: SComp decompression
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]>
2026-09-24 18:20:10 +02:00
SatyandClaude Opus 5.5 e551dcd098 BlizzardCore Mopaq pass 2b: InitializeTables, new block table
ARCHIVEREC::InitializeTables (hash/block table read, decrypt,
decompress, 16->49 byte block expansion, hi-block table),
System_MPQEncrypt::Decrypt, ArchivePtr, InitEmptyTables,
BlockEntryTable ctor/SetLayout/PackEntry/GetMaxima/AddFlags,
BuildBlockTable, PackBlockTable, ConvertToNewHashTableFormat,
HeapArray<T>, Blizzard::Util::Digest<16>, Streaming ready/trial
flags. BLOCKENTRY::m_offset is signed. Memory::Allocate has its
offset. SComp::Decompress, ReadAdditionalAttributes and
FillNewHashTable declared only.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 18:07:55 +02:00
SatyandClaude Opus 5.5 26321d1529 BlizzardCore Mopaq pass 2a: archive open/close
ARCHIVEREC layout, NewZerofill<T>, SFileOpenArchive (path and IOUnit),
s_OpenArchive header scan, OpenDirectPathAsArchive,
ConvertRelativePathName, GetArchivePtr, RemoveInternalArchiveRef,
SFileCloseArchive, SFileSetBasePath, SFileEnableDirectAccess,
SFileGetLastError, IOUnit::Release, System_Mopaq::OpenDiskFile.
0x431800 is ~HashEntryTable. InitializeTables declared only (pass 2b).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 17:48:58 +02:00
SatyandClaude Opus 5.5 8b29a15809 BlizzardCore Mopaq pass 1: hashes, bit-packed tables, globals
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]>
2026-09-24 17:33:56 +02:00
SatyandClaude Opus 5.5 bc2329bc70 BlizzardCore iounit pass 2: IOAlignUnit block cache
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]>
2026-09-24 17:06:05 +02:00
SatyandClaude Opus 5.5 3706b1aa94 BlizzardCore iounit pass 1: IOUnit chain, file/range/lock units
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]>
2026-09-24 16:53:08 +02:00
SatyandClaude Opus 5.5 299af1e188 Add the Win32 platform files missing from 8035c4b
.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]>
2026-09-24 16:52:37 +02:00
SatyandClaude Opus 5.5 953240f57c BlizzardCore Log, SComp review, Win32/Win64 platform folders
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]>
2026-09-24 16:16:55 +02:00
SatyandClaude Opus 5.5 59473357fa BlizzardCore: System/File pass 3; statics at top of file
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]>
2026-09-24 15:19:19 +02:00
SatyandClaude Opus 5.5 14776aefad BlizzardCore: System/File pass 2 (Win32 natives)
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]>
2026-09-24 15:03:44 +02:00
SatyandClaude Opus 5.5 e074187e5d BlizzardCore: System/File pass 1 (API, stack core, error stack)
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]>
2026-09-24 07:57:30 +02:00
SatyandClaude Opus 5.5 4c69191df1 BlizzardCore: port System/Thread pools, RMutex, EventObject
ThreadWorker (ctor/dtor/Executive/Start), ThreadPoolRecord (ctor/dtor/
GetWorker), CreateFromPool, CreateDetachedFromPool, CreateDefaultPool,
ShutdownThreadSystem; RMutex and EventObject lock members.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 07:31:02 +02:00
SatyandClaude Opus 5.5 4430938b95 BlizzardCore: port Process, Hardware CPU features, Unicode, TempBuffer
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]>
2026-09-24 07:16:44 +02:00
SatyandClaude Opus 5.5 0754d671a1 BlizzardCore: port System/Thread core (TLS, registry, create/close)
TLS slots, thread registry (std::set + AllocSTL_raw), NewThread/Create/
ThreadStarter/Close, external TLS destructors, priority get/set, and the
ScopedMutex guard (dtor 0x42B3A0). Pools deferred (need CPU features).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 07:01:45 +02:00
SatyandClaude Opus 5.5 3fd7e80f6c BlizzardCore: System/Debug error stack and assert handler, Memory::Free
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]>
2026-09-24 06:34:15 +02:00
SatyandClaude Opus 5.5 5f0cce8ada BlizzardCore: System/Time and System/Lock (Win32)
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]>
2026-09-24 06:21:04 +02:00
SatyandClaude Opus 5.5 31652c1a03 BlizzardCore: System/String (String, Path); declarations in headers
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]>
2026-09-24 06:09:38 +02:00
SatyandClaude Opus 5.5 b0c1183d75 BlizzardCore: System/Using and Blizzard::String::Copy
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]>
2026-09-24 05:58:31 +02:00
SatyandClaude Opus 5.5 56b7966778 Restructure BlizzardCore to the original tree
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]>
2026-09-24 03:49:44 +02:00
SatyandClaude Opus 5.5 cccfd26213 Move Storm to Engine/Source/Storm; SFile.cpp to BlizzardCore
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]>
2026-09-24 03:33:51 +02:00
SatyandClaude Opus 5.5 2e5f2331a5 Implement Engine/Source/Base FileCache
BaseFileDestroy; PrefetchNode/UncachableNode (constructor and destructor
inline); statics s_activeFiles, s_uncachableFiles, s_critSect. Empty
BaseFileInitialize, IBaseFileWaitForLoad, SFile::CreateOverlapped and
SFile::DestroyOverlapped (folded, docs/0x005EEB70.md, docs/0x00632050.md).
SOVERLAPPED in SFile2-Core.h.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 03:33:50 +02:00
SatyandClaude Opus 5.5 f61ee9376a Implement Storm main, StormRtl, SOption and SServer
Storm.cpp: StormAtExit, StormInitialize, StormDestroy, StormExit,
StormExitProcess. StormRtl.cpp: StormRtlDestroy, StormRtlInitialize.
SOption.cpp: StormSetOption with STORM_OPTION_* ids. W32/SServer.cpp:
SServerInitialize, SServerDestroy. Folded empty SStrDestroy,
SMemInitialize, SMemDestroy (docs/0x005EEB70.md, docs/0x008C8DE0.md).
SErr/SMem exit through StormExitProcess instead of the CRT _Exit.
SFile::Initialize/Destroy declared in SFile2-Core.h.

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