diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-04-02 18:25:19 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-04-02 18:25:19 -0400 |
| commit | e6fc1f18b786fb10803b2a147b7e808805e9d33b (patch) | |
| tree | 25f279465f90ace041564d4297e210d970b35a67 /docs | |
| parent | 0342876722f4cee5ed0a7ad1b47286bfbad2759a (diff) | |
Update ghidra struct export script to support C-style actors
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tww_class_to_cpp.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/tww_class_to_cpp.py b/docs/tww_class_to_cpp.py index dd0b67f2..ba531b76 100644 --- a/docs/tww_class_to_cpp.py +++ b/docs/tww_class_to_cpp.py @@ -68,8 +68,12 @@ for i in range (struct.getNumComponents()): member_name = undefined_member_name_prefix+hex_offset_string if member_name in ["parent", "base"] and data_type in ['fopAc_ac_c', 'dBgS_MoveBgActor', 'fopNpc_npc_c', 'fopEn_enemy_c', 'daPy_py_c', 'daPy_npc_c']: - # Not a member, inheritance - continue + if type_name.endswith("_class"): + # C-style actors use composition instead of inheritance + member_name = "actor" + else: + # Not a member, inheritance + continue # if undefined member if data_type == 'undefined' or check == True: |
