Commit Graph
70 Commits
Author SHA1 Message Date
SatyandClaude Opus 5.5 47a805dc6b Os O5a: live parts of OsTcp
Port OsNetPump (TCPNET::Pump inlined), TCPNET::LogWrite and the
OsNetAddr helpers. The TCPNET connection layer is dead in 12340;
IoPump stays declared only. Os links ws2_32.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 16:31:52 +02:00
SatyandClaude Opus 5.5 68f8dc745a Os O4b: OsVersionHash and OsURLDownload
Port the relocation-neutral PE image hash behind IOsVersionChecksum and
the async WinINet downloader. Os links wininet; storm.h gains the
scalar new/delete(size, file, line).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 16:21:33 +02:00
SatyandClaude Opus 5.5 6c89f31539 Os O4a: Os*File layer over Blizzard::File
Port the 21-function Os file API (OsCreateFile, OsReadFile, OsFileList,
...). OsCreateDirectory and OsSetCurrentDirectory move here from Path.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 16:01:44 +02:00
SatyandClaude Opus 5.5 63781abea8 Os O3: OsGui dialog framework remnant
Port OsGuiProcessMessage and the COsDialog/COsControl methods it
reaches, with 0.5.3 PDB names and layouts. Drop the GxTest stub.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 15:42:46 +02:00
SatyandClaude Opus 5.5 37e14d73ab Os O2: IME and clipboard
Port W32/OsIME.cpp (11 functions) and OsClipboard (5 functions).
Os links imm32 on Windows.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 15:16:12 +02:00
SatyandClaude Opus 5.5 2ba4294381 SHA-1 C API and OsSecureRandom
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 15:02:49 +02:00
SatyandClaude Opus 5.5 ca050459be Os pass 1: System, path and time helpers
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 14:53:30 +02:00
SatyandClaude Opus 5.5 f749997f95 Event observer TU and W32/OsCall.cpp
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 14:09:16 +02:00
SatyandClaude Opus 5.5 15708bf292 Event pass 3: Event* API and input dispatch
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 05:17:08 +02:00
SatyandClaude Opus 5.5 21cef061ce Event pass 2: Storm RW lock, instance id table, scheduler
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 04:52:29 +02:00
SatyandClaude Opus 5.5 5f21409837 Event pass 1: message queue, timers, priority queue
Rebuild Event headers from the binary (EvtContext layout, EVENTID,
EVENT_DATA_*, cdecl handlers), IEvtQueue*, IEvtTimer*,
CSBasePriorityQueue, TExtraInstanceRecycler, TSList::Combine.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 04:00:37 +02:00
SatyandClaude Opus 5.5 89c3a2ac98 ICursorDraw, D3D buffers: first D3D9 window
CGxDevice/CGxDeviceD3d::ICursorDraw, GxUpdateAlphaRef, CGxShader::Valid,
D3D BufLock/BufUnlock/BufData with IBufLock/IBufUnlock and CreatePoolAPI,
EmergencyMem::Lock/Unlock. GxTest defaults to its exe folder for data and
now runs the clear/present loop on both architectures.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 03:40:35 +02:00
SatyandClaude Opus 5.5 6328d9f7e9 D3D texture pass: texture create/upload and the Blit module
ITexWHDStartEnd, ITexCreate, ITexUpload, ITexMarkAsUpdated, TexDestroy,
Blit dispatcher with InitBlit and the plain converters,
CImVector::InterpColor. GxTest opens the game archives and now reaches
the first ScenePresent.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 03:21:02 +02:00
SatyandClaude Opus 5.5 a6920c183e Os time manager and Tools/GxTest
OsTimeManager ctor/Calibrate, create/destroy, OsTimeStartup/Shutdown,
async clock getters, OsGetNumberOfProcessors. GxTest creates the D3D
device and runs a clear/present loop; stops at the unported texture path.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 03:03:19 +02:00
SatyandClaude Opus 5.5 6a0af5fac8 Os pass 2: rest of the input layer and Gui helpers
OsInputGet event pump, OsQueueGet, input init/destroy, mouse speed/mode/
position, key and mouse-button state, OsGetDefaultWindowRect,
OsGuiSetWindowTitle/SetGxWindow/MessageBox. Name the 0x313/0x403 messages
in OsWindowProc.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 02:47:38 +02:00
SatyandClaude Opus 5.5 0ec663b0e4 Os pass 1: OsWindowProc and input helpers
OsWindowProc 0x86A210 with its helpers (queue, key/button conversion,
capture, self-drawn caption drag/resize, code-page tables), OsGuiGetWindow
and OsGuiIsModifierKeyDown. GxWindowProc is cdecl, not stdcall.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 02:33:43 +02:00
SatyandClaude Opus 5.5 f5d141f559 D3D pass 4: CGxDeviceD3d::WindowProcD3d
The D3D window procedure: device pointer in GWLP_USERDATA, size/
activate/focus/display-change/destroy to DeviceWM, paint, hardware
cursor, screensaver/monitor-power suppression, WM_SIZING clamps, and
forwarding to m_windowProc. Fixes DeviceWM's resize-type compare
(translated 1/2, not SIZE_MAXHIDE).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 02:09:37 +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 639e369cb8 D3D pass 2: render states and state sync
IRsSendToHw, DsSet with the 182-entry EDeviceState cache, stage setters
(texture, color/alpha op, tex coord/gen), material, IStateSync and its
light/material/xform/enable/clip/scissor/vertex-pointer syncs, vertex
declaration cache, shader binding and constant flush. File contents of
CGxD3dDevice.cpp and CGxDeviceD3d.cpp swapped (factory vs members).
CGxApiLight flags are 16-bit; s_shadowConstants and
s_pointScaleAttenuation (C3Vector) become CGxDevice class statics.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 01:34:31 +02:00
SatyandClaude Opus 5.5 12840d5eb1 D3D pass 1: CGxDeviceD3d class, constructor, simple virtuals
Gx/CGxDeviceD3d becomes a Windows-only directory with real D3D types and
one set of sources for x86 and x64 (rule 7 exception). The class moves
into CGxDeviceD3d.h with all 59 overridden slots declared. Ports the
constructor (0x68FD50), CreateCGxDeviceD3d, d3d9.dll load/unload, VB/IB
and pool virtuals, queries, shader create/destroy, hardware cursor,
gamma, window size/focus, stereo accessors and DeviceEvictResources.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 01:15:30 +02:00
SatyandClaude Opus 5.5 4c33d4c961 Gx: CGxDevice::DeviceOverride and PrimDrawElements
Both base virtuals were declared since the vtable pass but never got a
body; their dependencies (Log, the GxPrimLock wrappers) were already
ported.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 00:49:29 +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 4898dcc94a Gx pass 7: pools, shader hash table, CGxDevice ctor/dtor
Port BufCreate, PoolCreate/PoolDestroy, DeviceCreatePools,
DeviceCreateStreamBufs, IShaderLoad, ShaderCreate, ShaderDestroy,
CGxShader::Load/dtor, CGxPool dtor, CGxDevice ctor/dtor and
OsGetProcessorFeatures. CGxBuf gets its own header/source.
CGxPool/CGxBuf/CGxAppRenderState/CGxPushedRenderState become structs
(RTTI .?AU). HASHKEY_STRI derives from HASHKEY_STR. m_shaderList is
TSHashTable<CGxShader, HASHKEY_STRI>[6]; list offsets via offsetof.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 00:14:22 +02:00
SatyandClaude Opus 5.5 698a289577 Gx pass 6: render-state core, logging, window clamps
- CGxStateBom union, CGxPushedRenderState; typed render-state arrays in CGxDevice
- IRsDirty, IRsForceUpdate x2, IRsSync, IRsInit, RsSet, RsPush, RsPop
- MasterEnableSet, XformSetView, TexSetFlags, TexSetWrap, CGxTexFlags::operator!=
- GxRsSet (void*, int32_t, float), GxTexSetFlags, GxTexSetWrap
- CGxDevice::Log x4, LogOpen, LogClose; GxLog, GxLogOpen, GxLogClose, GxLogCrashInfo; g_gxApiNames
- ClampRectToWindow, ClampRect*ByAspect
- OsCreateDirectory (Os/Win32|Win64/Path.cpp)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 23:30:51 +02:00
SatyandClaude Opus 5.5 3e0d01aff0 Gx pass 5: textures, buffers, vertex format tables
- CGxTexFlags bitfields + 10-arg ctor with default args; CGxTex ctor/dtor, second TSLink at +0x48
- CiRect() zero-initializes (inline only)
- CGxDevice: TexCreate (returns 1), TexDestroy, ICursorCreate, CursorUnlock, BufDestroy, PrimVertexPtr;
  m_textures is a TSExplicitList
- CGxPool::UnlinkBuf (guessed name)
- Gx: GxTexCreate x3, GxTexUpdate(rect), GxPrimVertexPtr x2, GxPrimLockVertexPtrs
- Gx/Buffer.h/.cpp: Buffer::s_vertexBufDesc and the 14 per-format attribute tables

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 23:13:09 +02:00
SatyandClaude Opus 5.5 4ab6cba641 Gx pass 4: small CGxDevice members, shader constant shadows, texture helpers
- CGxDevice: window rects, caps flags, scissor, prim state, lights, clip planes, BufStream/BufSizeSet,
  Tex* helpers, ShaderConstantsClear/Set/Lock/Unlock, ICursorDestroy/ICursorUpdate, ClampRect*, DeviceGamma,
  DeviceScreenShot, XformPushAndSet
- Gx wrappers: GxBufStream, GxXformPush(xf, m), GxTexSetCannotUpdate/SetUserData/Parameters/SetDataFormat,
  GxTexUpdate, GxPrimIndexPtr, GxPrimLockIndexPtr
- CGxTex fields typed (EGxTexTarget, EGxTexFormat, GxTexUserFunc)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:54:33 +02:00
SatyandClaude Opus 5.5 f047b71145 Gx pass 3: Gx* wrappers, small CGxDevice members, portable Storm error constants
- Gx wrappers: GxXform*, GxBuf*, GxDraw, GxDrawLockedElements, GxSceneClear, GxTexDestroy/Copy/Reusable,
  GxQueryCreate/Destroy, max FPS, GxGetBlitFormat, GxHasContext, GxIsWindowVisible, GxMasterEnable
- CGxDevice: DeviceApi, CapsHasContext, CapsIsWindowVisible, MasterEnable, DeviceClearScreenShot, XformPush
- CGxTexParms, EGxXform, BlitFormat
- STORM_ERROR_SUCCESS/NOT_ENOUGH_MEMORY/INVALID_PARAMETER replace Win32 ERROR_* in general files;
  windows.h removed from them

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:45:13 +02:00
SatyandClaude Opus 5.5 e287ae2e10 Gx pass 2: CGxDevice vtable (84 slots) and 34 base virtuals
- Full virtual interface in binary slot order; overloads verified at slots 9/10 and 15/16
- Folded empty base virtuals defined without OFFSET; guessed names for slots 24/25, 49/50, 61, 81-83
- Base virtuals: DeviceCreate x2, DeviceSetFormat, gamma, screenshot, render target, Prim*, Buf*, callbacks,
  NotifyOn*, ITexMarkAsUpdated, QueryCreate/Destroy, XformSetProjection, cursor getters
- g_theGxDevicePtr; GxWindowProc returns intptr_t; callbacks are __fastcall
- C2Vector() and CImVector() zero-initialize (inline only)
- Gx enums EGxBuffer/EGxOverride/EGxQueryParam/EGxTexCommand/EGxWM moved to Gx/Types.h

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:28:38 +02:00
SatyandClaude Opus 5.5 597201ec6a Gx pass 1: device-free leaves, C3Vector ctors, Gx enums into Gx/Types.h
- CGxFormat(), CGxMatrixStack() + Identity, CGxLight(), CGxApiLight::operator= (moved to CGxLight.h),
  CGxPool::Invalidate/Discard, CGxGammaRamp::Set
- Gx.h/Gx.cpp: GxApiSupported, GxVertexSize, GxVertexAttribOffset, GxCalcTexelStrideInBytes + tables
- C3Vector() zero-inits and C3Vector(x, y, z) exists (inline only); CAaBox/C3Ray/CFrustum/Intersect rely on it
- EGxApi/EGxTexFormat/EGxVertexBufferFormat moved to Engine/Source/Gx/Types.h
- struct/class forward declaration mismatches fixed in CGxDevice.h and CGxPool.h

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:05:14 +02:00
SatyandClaude Opus 5.5 6aaed8939a Tempest pass 2: CMath, CRandom, NTempest geometry, CFrustum
- CMath: sqrt_, log2_, exp2_ (+ tables), solvequad_, normalizeangle0to2pi_, normalizeAngleNegPiToPi_; inline fint_ / ftol_round_0_255_
- CImVector::operator= rounds via fint_ (was truncating); Set via ftol_round_0_255_
- CRandom::uint32_ (guessed name) + table; CRndSeed moved to CRandom.h
- NTempest: ray/box, ray/plane, ray/tri (u16/u32), point-in-polygon, 2d box/sphere, segment and polygon distances
- CFrustum (0xE4) with culls, transforms, planes from corners; CWFrustum derives from it
- C3Vector::EAxis; Major/MinorAxis return it

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 21:43:28 +02:00
SatyandClaude Opus 5.5 a09c429bd3 Tempest pass 1: readable field names, class-named files, math classes
- Field names from the 12340 type library (x/y/z/w, a0..d3, minY/minX/maxY/maxX, b/t, c/r, n/d, origin/dir)
- Files renamed to match their class; CRay -> C3Ray; C3Segment, CRect, CiRect, C2iVector, C3iVector split out
- MouseEventData, CharacterInfo, M2Bounds moved out of Tempest headers
- 107 functions: C2/C3/C4Vector, C33/C34/C44Matrix, C4Quaternion, C4Plane, CAaBox, CAaSphere, C3Ray, CRect, CiRect, CImVector, NTempest
- 0x4C1C40 is cdecl (q, out): ported as static C44Matrix::FromQuaternion (guessed)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 20:46:51 +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