6 Commits
Author SHA1 Message Date
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 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 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 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 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
Saty 5137298335 Initial commit 2026-09-23 18:24:00 +02:00