Crusader_Decomp/scripts/_tmp_update_sprite_create_comment.py

15 lines
605 B
Python
Raw Permalink Normal View History

2026-04-09 00:32:12 +02:00
import sys
sys.path.insert(0, r"k:\mcp\GhidraMCP")
import bridge_mcp_ghidra as bridge
comment = (
"Current best live read: compact shared SpriteNode constructor. "
"The body allocates 0x34 bytes, stamps the 0x501a node vtable, and initializes the core link/offset lanes; "
"current direct callers are overwhelmingly GumpCreate_* wrappers, which supports treating this as the base node "
"constructor used by higher-level UI/gump objects rather than a one-off derived leaf."
)
print(bridge.set_decompiler_comment("1360:036a", comment))
print(bridge.get_function_by_address("1360:036a"))