vtable.py: bases from RTTI; 35 slot names inherited from REPENTOGON's base layouts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-24 20:30:12 -04:00
1 parent 3e43a4ced2
commit e22000166d
4 files changed
+94 -45

No files matched your search

+2
View File
@@ -220,6 +220,8 @@ finding only in your scratch files or your final message.
routines that take only the npc (they get typed `Entity_NPC *npc`), `NpcHelper::snake_name` for NPC helpers with
other arguments, `Class::snake_name` otherwise. Then run `python3 -I scripts/apply_db.py db/names.tsv dump`
(instant: renames it in the dump everywhere, including call sites and `npc_ai.tsv`).
For a virtual method, `./find.sh vtable CLASS` shows which slot it is; slot names are the most reliable evidence
there is (a short ZHL sig or ICF can put a name on the wrong function, a vtable slot cannot).
2. **A struct field** you have confirmed: add `Class<TAB>0xOFF<TAB>type _name<TAB>evidence` to `db/fields.tsv`.
**A local variable** in a function you have read closely: `function<TAB>local_2c0<TAB>newName[<TAB>C type]` in
`db/locals.tsv`. Only when every use has the same role: MSVC reuses registers and stack slots (see the file header).