mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-05 01:52:57 +00:00
d901dcf7ee
RTTI gives class names, not member names, so a method's own name is not
recoverable -- but the owning class is, and "CBaseEntity__000162C2" beats
"sub_000162C2" both for reading generated code and for crash stacks.
--names emits the {address: name} format merge_names.py --apply already
consumes, so this plugs into the existing naming path rather than adding
one.
Which class owns a method appearing in several vtables is well defined,
unlike per-slot declaration: the vtables share one implementation because
they inherit it, so the declaring class is the one that is an ancestor of
every other class in the set. That needs only the hierarchy sets, no MSVC
layout modelling. On Half-Life 2 it resolves 2,528 shared methods on top
of the 8,992 already unique -- 11,520 of 12,288 (94%) -- and returns zero
ambiguous cases. The 768 with no common ancestor are multiple inheritance
and thunks shared between unrelated classes; they are omitted rather than
guessed at.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BuW5WGcXFFrLAYEfvCNGs1