Commit Graph
84 Commits
Author SHA1 Message Date
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
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