Commit Graph
112 Commits
Author SHA1 Message Date
SatyandClaude Opus 5.5 7c7f474658 FrameXML: port XMLTree, FrameXML and LoadXML TUs
XMLTree.cpp (0x8145B0-0x814E40, XMLTree_GetRoot at 0x8BE770), FrameXML.cpp
(0x812530-0x8145A3) and LoadXML.cpp (0x814E40-0x816767, name guessed: no
__FILE__ string). LoadXML_AnimGroup and Create_SimpleMovieFrame stay
declared until their Frame classes exist.

XMLNode allocates from the CDataAllocator at 0xD3F718; CScriptRegion derives
from CScriptObject and CLayoutFrame (second vtable at +0x20); the attribute
array element is CXMLAttribute. Expat.h declares the expat API by hand until
expat is vendored.

Shared additions: Frame enums (FRAME_STRATA, ORIENTATION, SimpleAnim*,
ANCHORPOINT renamed FRAMEPOINT), Frame class vtable slots/constructors/
allocators and four shell classes, EGxBlend, MD5_CTX, one stpl.h instance.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 00:49:59 +02:00
SatyandClaude Opus 5.5 855c7175b1 ObjectAlloc: port ObjectAlloc.cpp and HeapUsage.cpp
ObjectAlloc.cpp (0x4D2AA0-0x4D36C0) and HeapUsage.cpp (0x4D2780-0x4D2AA0).
CObjectHeap moves from _Triage to IObjectAlloc.h, where 12340's inline
destructor puts it (IObjectAlloc.h line 30 in the SMemFree calls).

stpl.h: TSFixedArray gets its copy constructor (clear, then Set), which the
CObjectHeapList copy at 0x4D3410 proves; ReallocAndClearData is out of line
at 0x4D2E90; new template instances added to the OFFSET lists.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 00:28:21 +02:00
SatyandClaude Opus 5.5 2203210f2b Model2: port the Model2 TUs
M2Model.cpp, M2Shared.cpp, M2Scene.cpp, CM2SceneRender.cpp, M2Light.cpp,
M2Cache.cpp and the new M2Data.cpp/.h (0x81C000-0x834900). Only the
std::sort internals for CModelBatch stay unported.

AnimationData lookups in ResolveSequenceFallback/SequenceFallbackById use
g_animationDataDB directly: 12340 inlines its record loads into M2Model.cpp.

Shared additions: CParticleEmitter2 vtable order and the plane/sphere/spline
emitters, CRibbonMat, Services/Camera.h, Base/SIMD, Base/ObjectAlloc.h (the
engine-side ObjectAlloc interface), CFacet, CAaRect, CiRange, the C44Matrix
16-float constructor and CMath fequal/fnotequal/FloatToInt64.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 00:28:21 +02:00
SatyandClaude Opus 5.5 ee8a1c1bc6 ShaderEffect: port ShaderEffect, ShadowCache, manager and parser TUs
ShaderEffect.cpp (0x8728C0-0x873F50), ShadowCache.cpp (0x873F60-0x876370),
ShaderEffectManager.cpp (0x876370-0x876E30) and ShaderEffectParser.cpp
(0x876E30-0x8773F0).

Shared additions: GxRenderTargetSet, CGxDevice::DeviceGetRenderTarget,
C44Matrix::Identity, CWFrustum (m_sceneLink removed: 0xF4 stride),
M2LIGHTTYPE and the CM2Lighting::SetupGxLights declaration.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 00:16:27 +02:00
SatyandClaude Opus 5.5 860511ea4d Gxu: port the font and light TUs
GxuFontMain.cpp (0x6BCD60-0x6BF370), GxuFontUtil.cpp, GxuFontFont.cpp,
GxuFontFace.cpp, GxuFontString.cpp, GxuFontMiscClasses.cpp,
GxuFontTextureCache.cpp and IGxuFontGlyph.cpp, named after the 12340 and
Mac 13682 source file strings; CGxFont moves from Gx to Gxu.
GxuLight.cpp (0x6BB510-0x6BCD60): the light grid behind the GxuLight*
function-pointer table at 0xAD9834.

Gxu links FreeType 2.0.1. Shared additions: GxBufDestroy, GxFormatColor,
CGxVertexPC/PCT, CMath fint_n/fuint_pi/CeilToInt64, C3Vector::SquaredMag,
HASHKEY_DWORD and the template instances in stpl.h.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 00:15:42 +02:00
SatyandClaude Opus 5.5 4f79f0867f FrameScript: port the FrameScript TU (0x816790-0x81B714)
- FrameScript.cpp/.h: Lua state, execute/compile/load, variables, text,
  sprintf/print/pack, events and CPU usage
- FrameScript_Object.cpp/.h: FrameScript_Object and its methods
- FrameScript_Scripts.cpp: the _G extras (strtrim, securecall, date, ...),
  static, table s_extraFuncs at the end
- Types.h: FRAMESCRIPT_GENDER, PLURAL_RULE (best-guess value names)
- CScriptObject moved from _Triage to Frame; stale FrameScript triage
  headers removed
- Win32: _USE_32BIT_TIME_T like the original build
- MD5Update declared in Storm MD5.h (0x779A30, not ported)

All 87 definitions verified against 12340 (58 pass, 29 reviewed suspects).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 21:48:32 +02:00
SatyandClaude Opus 5.5 720e730823 Engine no longer depends on WoW/Source
- MOUSEBUTTON/MOUSEMODE move to Engine/Source/Event/Types.h (WoW/Source/Console/Types.h
  removed; COLOR_T is in ConsoleBase/Types.h).
- CRange and CBoundingBox move to Tempest (CRange.h, CBoundingBox.h); World.h includes them.
- TEXTURECACHE moves to Gxu/GxuFontMiscClasses.h (its code is in the Gxu font range,
  0x6C8E70+); CACHEENTRY stays in WoW/Common/TextureCache.h.
- CGxDevice.h, CGxFont.h, M2Model.h, Event and Os drop their WoW includes.
Build clean on Win32/x64 (known Wow.exe link gaps only); verify unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 19:20:38 +02:00
SatyandClaude Opus 5.5 d339a940b4 ConsoleBase: port ConsoleVar.cpp and ConsoleCommand.cpp (52 definitions verified)
- CVar (struct per 12340 RTTI; value callback is __cdecl), its console commands,
  CVarArrayWrapper/CVarIntListWrapper; command table, help, parse, complete.
- Engine-side console interface in IConsole.h (ConsoleWrite/Printf/CommandExecute...),
  implemented by WoW's ConsoleClient later (tracked in open_items); COLOR_T/CATEGORY in
  ConsoleBase/Types.h.
- stpl.h: TSList::Prev, TSHashTable::Next/DeleteNode, HASHKEY_CONSTSTRI.
- 27 suspects reviewed against 12340 listings; fixes: read-only message prints the
  cvar name, int-list decode reads bytes unsigned.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 19:20:38 +02:00
SatyandClaude Opus 5.5 20885b056c DB: WowClientDB<T>/WowClientDB_RLE<T>, per-record .cpp, table globals, StaticDBLoadAll, ClientDBInitialize
- WowClientDB.h: WowClientDB_Base, IDatabase<T>, WowClientDB_Common<T> (Load),
  WowClientDB<T> and WowClientDB_RLE<T> (Spell, ItemDisplayInfo, Light*Band) with
  OFFSET lists for every 12340 instance; WowClientDB.cpp: base dtor, RLE row codec.
- Records are classes (0.5.3 decorations) with out-of-line ctor/dtor/GetFilename/Read
  in DB/Rec/*.cpp, static s_numColumns/s_rowSize/s_generatedID; ID field m_id.
- DBClient.cpp: 239 table globals, StaticDBLoadAll, ClientDBInitialize (6 callees
  declared, tracked); Startup_Strings in Client.cpp, VideoHardware in Hardware.cpp.
- IDB synced (410 names, snapshot Wow.exe.pre_clientdb_20260926.idb).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 17:18:11 +02:00
SatyandClaude Opus 5.5 8f910aff10 Os: move FrameScript_FindTextSectionBounds/InvalidPtrCheck into System.cpp as OsFindTextSectionBounds/OsValidateFunctionPointer
Both sit between OsGetPhysicalMemory and IOsParseProcessorFrequency; their statics
(0xD415B8/BC) fill the gap in System.cpp's statics.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 17:18:10 +02:00
SatyandClaude Opus 5.5 2ad217cc0b Storm: SErrDisplayAppFatal* are not [[noreturn]]
12340 falls through after every call; the attribute made modern MSVC move the fatal paths
to cold blocks. Harness before/after: WowClientDB_Common::Load 0.53 -> 0.99 pass, 4 more
shapes up, none worse.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 17:18:10 +02:00
SatyandClaude Opus 5.5 0ba24012af DB: 241 12340 client DB records, one header each in DB/Rec (GetFilename + Read, 482 definitions verified)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 16:04:55 +02:00
SatyandClaude Opus 5.5 341cbae7a4 SoundEngine: fix 4 suspects from binary review (Stop NaN, GetChannelInfo sum order, void SetReverb/SetListenerAttributes)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 16:04:54 +02:00
SatyandClaude Opus 5.5 c93c433251 SoundEngine: port SoundCache.h (chunk cache, 7 definitions verified)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 10:31:22 +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 00b85f5ae2 stpl.h: TSList::NewNode stamp manual after template instance pairing fix
Re-read against its own CMipBitsCache instance (0x4B6E40); shape-only
difference.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 09:16:41 +02:00
SatyandClaude Opus 5.5 5f720dfc64 fmodex completion pass; CMake integration; vsnprintf fixes
- OFFSETs/reconstruction from 12340: System::getDriverName,
  setRecordDriver, getRecordDriverName; Sound/SoundI/Codec::readyForRelease
  (new, non-virtual); SoundI::getNumTags; OutputWASAPI::getDriverName;
  OutputWavWriter::getHandleCallback (folded with WASAPI's
  recordGetPositionCallback); LocalCriticalSection::enter; ASIO stopCallback.
- fmodex in the wowdecomp CMake build (Win32 + x64, NASM on Win32,
  WIN32_LEAN_AND_MEAN/NOMINMAX removed for SoundEngine, LoadOAL.cpp);
  x64 portability casts; libFLAC fseeko/ftello -> fseek/ftell on MSVC.
- CGxDevice::Log(va_list), SysMsgPrintf, SysMsgVPrintf: _vsnprintf as in
  12340 (were C99 vsnprintf; hidden by a harness overload-pairing bug).
- VERIFY stamps.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 09:08:31 +02:00
SatyandClaude Opus 5.5 311a1c26fc fmodex: FMOD_Mpeg_Synth_FPU_Float, SIMD calls guarded for x64
- FMOD_Mpeg_Synth_FPU_Float (0x94BB60, name ours): the unreferenced
  float-output sibling in 12340's MPEG synth object, byte-identical.
- DSPDistortion and FMOD_Resampler_Linear: SIMD prototypes and calls
  under #ifdef FMOD_SUPPORT_SIMD like fmod_dsp_convert.cpp, so x64 takes
  the C path; Win32 code unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 08:34:38 +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 2b16bc79ef fmodex: library triage against 12340
- libvorbis mapping0/res0/floor1 back from 1.2.3 to 1.2.0 (plus FMOD's
  NULL checks); vorbis_look_floor1 regains sorted_index[65] (0x520).
- OFFSETs for the 22 mapping0/res0-2/floor1/floor0 functions and
  _ov_open2 (0x46BFF0) that were defined in the IDB from the export
  bundle tables.
- 104 library functions approved as codegen (VERIFY stamps), reasons
  in re/data/fmod_triage_verdicts.tsv.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 07:53:37 +02:00
SatyandClaude Opus 5.5 d4c6021753 fmodex: libraries to the versions 12340 linked
- FMOD 4.30's `void *context` parameter removed from libogg, libvorbis
  and libFLAC; CodecFLAC/CodecOggVorbis lose mMemUsed (0xE0 / 0x4D0).
  Ogg allocations go through FMOD_Memory_Alloc & co (12340 calls
  FMOD_Memory_allocC); FMOD_OggVorbis_*/FMOD_FLAC_* allocators take no
  context and are compiled unconditionally.
- libFLAC 1.2.1 -> 1.1.4 ("reference libFLAC 1.1.4 20070213" in 12340),
  folder renamed flac-1.2.1 -> flac-1.1.4, ogg decoder aspect added
  (FLAC__HAS_OGG=1).
- libogg framing.c -> 1.1.3 plus FMOD's changes.
- libvorbis -> 1.2.0 plus FMOD's changes: vorbisfile, block, info,
  codebook, sharedbook, lsp (FLOAT_LOOKUP), mdct; restored psy/envelope
  cleanup and floor0; OggVorbis_File 0x2C8, vorbis_dsp_state and
  vorbis_block 0x70, private_state 0x80, codec_setup_info 0xDD0.
- VERIFY stamps for the FLAC/Ogg codec functions.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 07:34:21 +02:00
SatyandClaude Opus 5.5 ca58254036 fmodex: CodecMIDI to the 12340 layout (0x2EBC)
Remove mDSPTick, mMillisecondsPlayed, mDLSCache and the post-4.09 DLS
cache (CodecMIDIDLSCache, gDLSCacheHead). openInternal creates the DLS
sound directly, keeps the played milliseconds local, rescales timing by
512/samplespertick, loads included samples without a loaded check and
does not set mDSPMixTarget; closeInternal releases in the binary order.
Offsets from CodecMIDI::openInternal/play/update/readInternal 0x8FC850,
0x8FB270, 0x8FC3B0, 0x8FC430. Remaining MIDI suspects approved as
codegen with VERIFY stamps.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 06:49:26 +02:00
SatyandClaude Opus 5.5 692ebcc4f6 fmodex: verify.py suspect triage against 12340
790 fmodex suspects triaged in three rounds against the 12340 asm and
Hex-Rays; verdicts in re/data/fmod_triage_verdicts.tsv, summary in
re/notes/304_fmod_offsets.md.

- 73 fixes to 12340 behaviour: ASfxDsp (0x500), DSPITEcho (0x140),
  DSPConnectionI (0xF0), CodecMIDIChannel (0x2AC), CodecVAG (0x278),
  CodecASF and OutputTimer layouts; DSPI::execute overload order;
  32-bit SoundI::getBytesFromSamples; 4.30 leftovers removed in MPEG,
  music codecs, outputs, codecs and DSP; ASYNC_STACKSIZE 32 KB.
- 693 codegen-only suspects stamped `// VERIFY: <hash> manual`, plus
  new auto stamps for passes.
- Open: CodecMIDI layout, FLAC/Ogg library context, synthC asm,
  VST/Winamp hookups in createDSP, updateSyncPoints signedness.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 06:41:54 +02:00
SatyandClaude Opus 5.5 5999ac4e1f fmodex: fixes from the first verify.py pass
- File::open/close/cancel/read/seek/tell are F_API (__stdcall) as in 12340.
- ChannelPool::allocateChannel: 4 arguments; skips ALLOCATED, IN_USE,
  ENDDELAY and RESERVED channels (0x8E8A50).
- CodecXM::updateFlags(vcptr, sptr) without a flush after stop (0x903AE0).
- CodecMPEG::synthC is static (__cdecl, 0x94B920).
- MeteredSection: FILEMAPPING build (shared view + interlocked spin lock),
  as the 12340 functions at 0x8E4D60..0x8E50C0.
- CodecASF::closeInternal frees only the PCM buffer (0x8F7D50).
- 724 `// VERIFY: <hash> auto` stamps written by verify.py on the fmodex
  definitions that pass.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 04:46:12 +02:00
SatyandClaude Opus 5.5 fe133bbc9f fmodex: port core to 4.09 / 12340 behaviour and layout
Port the FMOD Ex core from the 4.30 source to the 4.09.07 behaviour and
layout of 12340, function by function against the binary.

- Plugins, files and DSP: PluginFactory index API, File, DSPNet, the DSP
  units (resampler, wavetable, codec, soundcard, filter), DSPI mix API.
- Sounds: SoundI, Sample/SampleSoftware, Stream, sync points.
- Channels: ChannelReal (37-slot vtable), ChannelSoftware, ChannelStream,
  ChannelEmulated, ChannelRealManual3D, ChannelI (stopEx with 7 bools),
  ChannelGroupI, SoundGroupI, SpeakerLevelsPool.
- System: all 72 SystemI functions of 12340, the System wrappers, and
  the unused 4.09 API on the public signatures.
- Async, memory (LocalMemoryCounter), thread, geometry.
- Outputs: DirectSound, OpenAL, WinMM, WASAPI (timer based), ASIO,
  polled and software; single-device recording.
- Codecs: FSB, MPEG memory block, IT/XM/S3M/MOD/MIDI.
- fmod.hpp: Channel::getFadeVolume (0x8D0F60, used by the client).

fmod_build.sh: 0 errors. Layout: all rows match 12340 except CodecMIDI,
CodecFLAC, CodecOggVorbis and CodecVAG. Not yet run through verify.py.
Notes: re/notes/304_fmod_offsets.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 03:54:45 +02:00
SatyandClaude Opus 5.5 3c1c538197 fmodex: FMOD Ex 4.09.07 public headers
fmod.h, fmod.hpp, fmod_codec.h, fmod_dsp.h, fmod_output.h, fmod_errors.h
from the official 4.08.06 SDK (archived fmodapi40806win32-installer.exe),
plus the 4.09.01-4.09.07 API additions from revision.txt:
FMOD_VERSION 0x00040907, FMOD_INIT_ENABLE_DSPNET 0x20 (tested by 12340
SystemI::init), System::getRecordDriverCaps, ChannelGroup::set3DOcclusion/
get3DOcclusion (C++ and C). sizeof(FMOD_CREATESOUNDEXINFO) 0x6C matches the
cbsize check in 12340 SystemI::createSoundInternal.

The 4.30.04 sources do not compile against these yet (763 error sites);
that is the porting work list.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 00:39:05 +02:00
SatyandClaude Opus 5.5 0a9576cfc5 fmodex: trim to 12340's feature set
12340 registers 19 codecs, 16 DSPs and the NoSound/WavWriter/OpenAL/ASIO/
WASAPI/WinMM/DSound outputs (SystemI::setUpPlugins 0x8D35C0,
FMOD_OS_Output_Register 0x915FC0).

- fmod_settings.h: CELT, DLMALLOC, MEMORYTRACKER, PROFILE (+sub-switches),
  DELAY, TREMOLO off; Win32 VSTPLUGIN/WINAMPPLUGIN/NEURAL off; Win64
  NEURAL/I3DL2 off.
- Deleted post-4.09.07 features (not in revision.txt up to 4.09.07, no
  function in 12340): lib/libcelt, lib/neural_thx, lib/dlmalloc, CELT codec,
  Tremolo/Delay DSPs, MyEars/Neural downmix, fmod_profile*.
- VST/Winamp (existed in 4.09, compiled out of 12340) and the memory tracker
  are kept but switched off.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 00:34:50 +02:00
SatyandClaude Opus 5.5 73d08005cb fmodex: OFFSET annotations for 1828 12340 functions
1829 // OFFSET lines (1830 addresses; Codec::Codec is emitted twice) in 199
files. Matched by qualified name against the IDB (binana/Mac names), plus
59 manual resolutions (overloads, #if variants, duplicate statics).
227 of 230 functions that reference a __FILE__ string agree with the file.
Note: this tree is FMOD Ex 4.30.04 relabeled 4.09.07; 12340 is 4.09.07.
See re/notes/304_fmod_offsets.md. No code changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 00:34:50 +02:00
SatyandClaude Opus 5.5 ea3c081245 fmodex: FMOD Ex 4.09.07 sources (E:\Github\fmodex)
Unmodified copy of fmodex/fmod (lib/, src/, win32/) plus LICENSE.TXT and
revision.txt, at the original location Engine/Source/SoundEngine/fmodex
(12340/Mac 13682 paths). 12340's exact FMOD version is unknown; version
differences are expected. Not built yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 23:44:43 +02:00
SatyandClaude Opus 5.5 1c40e8a29b lua-5.1: match 12340 (taint, profiler, GC accounting, mem pool, bitlib)
All 509 functions of 12340's Lua block (0x84D390-0x863580) carry an
OFFSET and are verified (static evidence; see re/notes/303_lua.md).

- Compiled as C++ with extern "C" API, setjmp/longjmp errors.
- Taint on GC objects and TValues, taint globals, taint event callback,
  closure taint in the VM, gctag for new objects.
- Profiler: Profile per closure, luaD_precall_profile,
  luaV_execute_profile; GC size/time accounting per tag.
- luaconf: COMPAT_VARARG/MOD/GFIND off, 4-byte max alignment,
  MAX_SIZET 0x1000000; removed randomseed/print/dofile/loadfile/load,
  no binary chunks.
- UTF-8 string.lower/upper, Blizzard string.format, BOM skip,
  raw lua_setglobal, table.removemulti/wipe, externalabort.
- New: lbitlib.c, lmemPool.cpp/.h, FrameScript_InvalidPtrCheck
  (Win32/Win64), lua CMake target.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 23:41:32 +02:00
SatyandClaude Opus 5.5 56fc54adc0 lua-5.1: OFFSET annotations for 467 stock functions found in 12340
Addresses from the IDB function list of the Lua block (0x84D390-0x863580),
matched by name; 24 IDB names were wrong or Blizzard-renamed and were mapped
by file order (index2adr, lua_equal, lua_objlen, luaI_openlib, base_open,
stack_init, luaD_seterrorobj, resize, funcname, chunk, luaY_parser, ...).
No code changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 22:30:31 +02:00
SatyandClaude Opus 5.5 7804ec716a lua-5.1: stock Lua 5.1.1 library sources (lua.org)
Unmodified src/*.c/*.h from lua-5.1.1.tar.gz (sha256 c5daeed0...a6e17d1f0),
the version 12340 reports. Standalone lua.c/luac.c/print.c left out.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 22:08:04 +02:00
SatyandClaude Opus 5.5 82ab861221 ModelBlob: World\Model.blob bounding boxes
- CModelBlob (Load, HashBlobEntry, Query, destructor), SEntry, CHashEntry,
  HASHKEY_MODELBLOBFILE, s_modelBlob/s_modelBlobHT
- ModelBlobLoad, ModelBlobQuery, ModelBlobDestroy
- Drop windows.h from ModelBlob.h
- GxTest --modelblob

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 21:59:34 +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 5fbacb0427 DXT decode: Blit_Dxt* converters, block decoders, colour tables
Ports the 7 DXT->ARGB entry points, Blit_Dxt/Blit_DxtUnaligned
templates, DxtDecodeBlock overloads, DxtMakeTable(Alpha)
specializations, alpha callbacks and DxtColorBlock::Tables.
BlpTest gains a synthetic `blit` mode; output matches 12340 under
emulation on x86 and x64 (note 297).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 19:07:25 +02:00
SatyandClaude Opus 5.5 58327e7acd BLP runtime check: BlpTest tool, x64-safe dither index
Tools/BlpTest decodes real BLPs through CBLPFile in every format and mip;
output matches 12340's own code run under emulation (note 296).
Dither decoders: next[x - 1] -> (next + x)[-1]; x86 asm unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 18:33:21 +02:00
SatyandClaude Opus 5.5 60214f0fe3 BLP B2: Floyd-Steinberg palette decoders
Port DecompPalARGB4444/1555/565/2565DitherFloydSteinberg with their
static error rows and alpha tables; CBLPFile is now complete.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 17:14:52 +02:00
SatyandClaude Opus 5.5 eb52720935 BLP B1: CBLPFile core, mip helpers, CalcRowStride
Port CBLPFile open/source/lock/unlock/lock-chain and the palette
fast paths, the MippedImg helpers (_Triage) and CalcRowStride.
BLPHeader moves to BLPFile/Types.h with the palette/JPEG union.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 17:08:56 +02:00
SatyandClaude Opus 5.5 250c8817ee Os O6: W32 joystick (DirectInput 8)
Port the OsJoystick API, device enumeration, polling with dead zones,
hat emulation and joystick mouse mode. OsJoystickPoll becomes Mac's
OsPollJoysticks. Clamp (0x5C59F0) goes to _Triage. Os links dinput8
and dxguid.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-25 16:58:04 +02:00
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