feat(extractor): extract scene modules (SCENE:DLLS=) like engines
A module DLL has no engine factory: its CMC_ExternObject::resolve compares TYPE (CXString::equals or operator==), allocates and constructs. The runner of each type is the vftable its constructor or a virtual installs whose prepare slot chains to CMC_Runner::prepareMthHashSet (defined when analysis left it out); registrations, dispatch, signatures, per-type events and fields then come from the engine passes, limited to the module's own runners. Snapshots record module_of (the host engine DLL). An unoptimised run() keeps the switch index in a stack slot; its bounds are followed through that slot only when the register match finds none. The batch queue extracts plugins too, the inventory knows MATRIX, QMAN, INERTIA and BOARD, and the tracker marks module-mapped types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f71cd9a90f
commit
4e65268a1e
+5
-1
@@ -7,6 +7,10 @@ from pathlib import Path
|
||||
import re
|
||||
|
||||
|
||||
# Scene modules loaded by `SCENE:DLLS=`; each adds script types (QMAN: TEST).
|
||||
PLUGINS = {"WORLD.DLL", "KOLOROWANKA.DLL", "MATRIX.DLL", "QMAN.DLL", "INERTIA.DLL", "BOARD.DLL"}
|
||||
|
||||
|
||||
def inventory(roots: list[Path], snapshot_dir: Path | None = None) -> dict:
|
||||
extracted = set()
|
||||
if snapshot_dir:
|
||||
@@ -29,7 +33,7 @@ def inventory(roots: list[Path], snapshot_dir: Path | None = None) -> dict:
|
||||
family, scope = name.removesuffix(".DLL"), "engine"
|
||||
elif name.startswith("BLOOMOO"):
|
||||
family, scope = "BLOOMOO", "engine"
|
||||
elif name in ("WORLD.DLL", "KOLOROWANKA.DLL"):
|
||||
elif name in PLUGINS:
|
||||
family, scope = name.removesuffix(".DLL"), "plugin"
|
||||
elif name == "SEKAI.DLL":
|
||||
family, scope = "SEKAI", "native_dependency"
|
||||
|
||||
Reference in New Issue
Block a user