mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:50:44 +00:00
The static loader resolves InitializeApiImpl, InitializeApiImplEx, InitializeApiImplEx2, UninitializeApiImpl, QueryApiImpl, and XErrorReport with GetProcAddress. Those initialize entry points share the existing runtime refcount with XGameRuntimeInitialize and XGameRuntimeInitializeWithOptions. UninitializeApiImpl releases that same state. QueryApiImpl dispatches the offline families this DLL already implements and logs any other class or interface. XErrorReport records the code and message and does not terminate the process. Closes #439 Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
BetterXen Frozen ABI Contracts (abi/)
This directory holds the only shared interface boundary across BetterXen's six parallel development tracks.
Rules for Contributors
- ABI-First Changes: If one track needs a new cross-DLL helper, config flag, or export symbol, open a small, focused
[ABI]pull request touching onlyabi/. - Zero File Collisions: Never edit another track's implementation directory in an
[ABI]PR. Once the[ABI]PR merges tomain, both provider and consumer tracks implement in parallel. - Versioned Contracts: Increment
BX_ABI_VERSIONinabi/include/bx_config.hon any breaking struct or signature change. - Canonical
.defExports: Every DLL undershims/links directly against its correspondingabi/defs/<name>.def. CI verifies the built PE32+ export table matches these.deffiles.