Owner confirmed the differing sizes/export counts/RVAs are just a different release of the same official game. Remove the "pending re-check against clean-release binary" / "contaminated install" caveats throughout and state those numbers (module sizes, export counts, gameMain RVA 0x9e20) as verified facts. Drop the stale 3,369,104-byte gamekdm figure in favor of the consistent 3.19 MB. Genuine format/behavior UNVERIFIED markers (undecoded .arc/.ifs/.ttc/etc. formats, Kinect dispatch/sync) are preserved.
140 lines
6.6 KiB
Markdown
140 lines
6.6 KiB
Markdown
# 07 — Companion DLL API Surfaces
|
|
|
|
This section documents the exported API surface and role of the **eight
|
|
official companion DLLs** shipped beside `gamekdm.dll` in the clean
|
|
KDM-2016021900 `contents/modules/` release. The complete official module set
|
|
is the nine modules in [`../companion-inventory.md`](../companion-inventory.md):
|
|
these eight companions plus `gamekdm.dll`. The authoritative scope contract is
|
|
[`../../.omo/scope/official-scope.md`](../../.omo/scope/official-scope.md).
|
|
|
|
Export and dependency claims below are grounded in the companion export/import
|
|
tables recorded under `re/importlibs/` and the clean-release module topology
|
|
in the inventory. No community
|
|
launcher, hook, emulator, stub, or non-release module belongs to this API
|
|
surface.
|
|
|
|
Cross-links: [`./00-overview.md`](./00-overview.md),
|
|
[`./08-abi-conventions.md`](./08-abi-conventions.md),
|
|
[`./09-reconstruction-codebase.md`](./09-reconstruction-codebase.md).
|
|
|
|
## libavs-win32.dll — AVS2 base middleware
|
|
|
|
**Role:** root of the official dependency DAG. It supplies the AVS2
|
|
property-tree configuration store, virtual filesystem, and
|
|
thread/mutex/event primitives used by the shipped modules
|
|
[`../companion-inventory.md`](../companion-inventory.md).
|
|
|
|
**Export surface:** `re/importlibs/libavs-win32.def` records named,
|
|
hash-obfuscated `XCd229cc...` exports.
|
|
One reconstruction mapping is documented in
|
|
`re/avs/property_node.h`, `re/avs/property_node.cpp`, and
|
|
`re/avs/avs_structdb.json`: token `XCd229cc000083` is reconstructed as
|
|
`avs::property_node_datasize`. That reconstruction is an interpretation of
|
|
the official export and recorded code evidence, not a claim that an external
|
|
compatibility project is part of the game.
|
|
|
|
## libavs-win32-ea3.dll — AVS2 e-amusement v3 extension
|
|
|
|
**Role:** the shipped AVS2 e-amusement v3 extension. In the official graph it
|
|
depends on `libavs-win32.dll` and is used by `ess.dll` and `arkkdm.dll`
|
|
[`../companion-inventory.md`](../companion-inventory.md).
|
|
|
|
**Export surface:** `re/importlibs/libavs-win32-ea3.def` records a distinct
|
|
hash-token export family, `XE592acd...`. The module's network/bootstrap role follows the
|
|
official dependency graph and its relation to the shipped ESS middleware;
|
|
it does not rely on any emulator header or launcher source.
|
|
|
|
## arkkdm.dll — ARK engine (KDM build)
|
|
|
|
**Role:** the official ARK/KDM cabinet-game engine and AVS2 game-DLL entry.
|
|
It imports the shipped AVS2, EA3, ESS, ACIO, and AFP modules
|
|
[`../companion-inventory.md`](../companion-inventory.md). Its official
|
|
`dll_entry_main` path loads `gamekdm.dll` (with `arkkdmtest.dll` as a
|
|
test-build fallback), resolves `gameMain`, and calls it; this is derived from
|
|
the official `arkkdm.dll` artifact, not a launcher or hook
|
|
[`../../.omo/scope/official-scope.md`](../../.omo/scope/official-scope.md).
|
|
|
|
**Export surface:** `re/importlibs/arkkdm.def` records readable `arkAFP*`,
|
|
`arkKDM*`, `arkCardManager*`, `arkEACoin*`, `arkEvent*`, `arkFile*`,
|
|
`arkHeap*`, `arkMutex*`, `arkNetwork*`, `arkSemaphore*`, and `arkThread*`
|
|
families, together with `dll_entry_init` and `dll_entry_main`.
|
|
|
|
The families describe ARK-level AFP rendering, cabinet credit/card/coin
|
|
orchestration, file I/O, synchronization, heap management, network/matching,
|
|
event logging, and KDM-specific controls. They are an API classification from
|
|
the official export table; they do not establish a direct `gamekdm.dll`
|
|
import for every service.
|
|
|
|
## libafp-win32.dll + libafputils-win32.dll — AFP graphics pipeline
|
|
|
|
**Role (`libafp-win32.dll`):** shipped AFP asset/font/graphics pipeline,
|
|
depending on AVS2. Both `arkkdm.dll` and `gamekdm.dll` use the AFP layer in
|
|
the official dependency graph.
|
|
|
|
**Export surface (`libafp-win32.dll`):**
|
|
`re/importlibs/libafp-win32.def` records readable `afp_*` exports covering
|
|
player lifecycle, layer and movie-clip management, matrix math, rendering,
|
|
stream/package loading, property nodes, and input forwarding.
|
|
|
|
**Role (`libafputils-win32.dll`):** shipped AFP utility layer directly above
|
|
AVS2 and AFP, providing package/asset introspection
|
|
[`../companion-inventory.md`](../companion-inventory.md).
|
|
|
|
**Export surface (`libafputils-win32.dll`):**
|
|
`re/importlibs/libafputils-win32.def` records readable `afpu_*` exports for
|
|
package lifecycle; font, image, shape, layout, group, and texture metadata;
|
|
NGP package data; binary swapping; and render statistics.
|
|
|
|
## ess.dll — e-amusement middleware
|
|
|
|
**Role:** the official e-amusement service layer over AVS2 and EA3. It
|
|
supplies the card/account, credit/eAmusement-coin, networking/matching,
|
|
event-log, and player-data services consumed through `arkkdm.dll`
|
|
[`../companion-inventory.md`](../companion-inventory.md).
|
|
|
|
**Export surface:** `re/importlibs/ess.def` records readable `ess_*` exports
|
|
for card management, credit, eAmusement coin, EA3 session handling,
|
|
filesystem access, facility metadata, event logging, TCP/UDP and matching,
|
|
player data, ranking, logging, and license/security operations.
|
|
|
|
## libacio.dll — ACIO arcade I/O
|
|
|
|
**Role:** the official ACIO amusement-cabinet I/O protocol library. It is a
|
|
root in the shipped-module graph and imports only OS libraries there
|
|
[`../companion-inventory.md`](../companion-inventory.md).
|
|
|
|
**Export surface:** `re/importlibs/libacio.def` records readable `ac_io_*`
|
|
exports for session lifecycle, BMPU button/coin/LED control, ICCA card-reader
|
|
control, and cabinet LED operations. This section deliberately makes no API or dependency claim for
|
|
other ACIO variants, input libraries, security stubs, or non-release Konami
|
|
DLLs.
|
|
|
|
## arkkdmtest.dll — ARK/KDM render and input test harness
|
|
|
|
**Role:** a shipped ARK/KDM render-and-input test harness which exports
|
|
`gameMain`. It is a root in the shipped graph and uses OS D3D9/DINPUT8/DSOUND/
|
|
GDI32/SHELL32/USER32 imports only
|
|
[`../companion-inventory.md`](../companion-inventory.md).
|
|
|
|
**Export surface:** the clean-release listing establishes its `gameMain`
|
|
role.
|
|
|
|
## Naming-convention summary across official companions
|
|
|
|
| DLL | Export naming recorded in repository evidence |
|
|
|---|---|
|
|
| `libavs-win32.dll` | `XCd229cc...` hash tokens |
|
|
| `libavs-win32-ea3.dll` | `XE592acd...` hash tokens |
|
|
| `arkkdm.dll` | readable `ark*` families |
|
|
| `libafp-win32.dll` | readable `afp_*` families |
|
|
| `libafputils-win32.dll` | readable `afpu_*` families |
|
|
| `ess.dll` | readable `ess_*` families |
|
|
| `libacio.dll` | readable `ac_io_*` families |
|
|
| `arkkdmtest.dll` | `gameMain` role from clean listing |
|
|
|
|
The two AVS2 tiers are the only official companions documented here with
|
|
hash-token names. All claims in this table concern the official companion
|
|
set only; `Kinect10.dll` is instead Microsoft's external Kinect-for-Windows
|
|
NUI v1 runtime imported by `gamekdm.dll`, not a companion or shipped module
|
|
[`../companion-inventory.md`](../companion-inventory.md).
|