Commit Graph
17 Commits
Author SHA1 Message Date
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 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 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 a8e251eb85 Base: Base, CmdLine, ConvertUTF, Coordinate, Sort
Port the remaining Base block A pieces: global/context init, the
command-line option table, UTF-8/16 conversion (sgetu8/sputu8), the
coordinate/aspect helpers and the context qsort. All functions verified
against the binary.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 05:46:00 +02:00
SatyandClaude Opus 5.5 195c975476 Base: CDataStore
Port CDataStore (0.5.3 layout and names, 11-slot 12340 vtable) into
Engine/Source/Base, remove its declaration from UIUtil/AddOns.h, and
document the three folded vtable stubs. All functions verified against
the binary.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 05:20:21 +02:00
SatyandClaude Opus 5.5 9c87d11233 Base: CDynamicString
Port CDynamicString (Mac 4.0.1 names; Grow and field names are best
guesses) and allow best-guess names in CODING_RULES.md. All functions
verified against the binary.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 05:01:59 +02:00
SatyandClaude Opus 5.5 04a7d5136a Base: CDataRecycler, RefCount.cpp; move header function bodies to .cpp
Port CDataRecycler following the 12340 binary (Link takes two arguments).
Move every non-template function body out of the Base headers into their
.cpp files, give TRefCnt its own RefCount.cpp, and record the rule in
CODING_RULES.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 04:46:38 +02:00
SatyandClaude Opus 5.5 fc73a3920f Base: CDataAllocator
Port the fixed-size block allocator (0.5.3 layout, Mac 3-argument Clear,
destructor as inlined Clear). All functions verified against the binary.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 04:29:34 +02:00
SatyandClaude Opus 5.5 147177c448 Base: CBitArray; Storm: operator delete[]
Port CBitArray (Mac 4.0.1 names and field names from asserts) and add the
client operator delete[] that 12340 inlines everywhere.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 04:23:35 +02:00
SatyandClaude Opus 5.5 8f14dd9d01 Base: RCString, CStringMemory, CStringManager, TRefCnt
Port the 12340 string interning table (Mac 4.0.1 design) and TRefCnt in
RefCount.h. All functions verified against the binary.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 04:17:30 +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 37591d61e2 Implement Engine/Source/Base Handle
HandleClose, HandleCreate, HandleDuplicate; HandleDereference inline;
empty HandleInitialize/HandleDestroy (folded). CHandleObject in
Base/Handle.h with its real layout (vtable, m_refcount at +4), which moves
TEXTBLOCK::m_string and FONTHASHOBJ's fields by 4. HOBJECT in Base/Types.h.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 03:14:22 +02:00
SatyandClaude Opus 5.5 f282eed856 Implement Engine/Source/Base Prop and Os/W32/Tls
Prop: PropInitialize, PropDestroy, PropSelectContext,
PropGetSelectedContext, PropGet, PropSet, PropCreateContext, s_tlsIndex.
Tls: OsTlsAlloc, OsTlsFree, OsTlsGetValue, OsTlsSetValue. PROPERTY enum
and HPROPCONTEXT in Base/Types.h (moved from Event/EvtContext.h).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 03:03:19 +02:00
SatyandClaude Opus 5.5 a19a5df43e Implement Engine/Source/Base Status
CStatus with its 12340 layout (vtable, entry list, highest severity):
GetGlobalStatusObj, Add (both), IsEmpty, GetErrorStr, GetErrorStrLen,
GetErrorStrAlloc, Prepend, ~CStatus; STATUSENTRY destructor and Clear
inline in Status.h. CTexture drops the gap that was the rest of CStatus.

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