15 lines
547 B
Python
15 lines
547 B
Python
|
|
import sys
|
||
|
|
|
||
|
|
sys.path.insert(0, r"k:\mcp\GhidraMCP")
|
||
|
|
import bridge_mcp_ghidra as bridge
|
||
|
|
|
||
|
|
|
||
|
|
comment = (
|
||
|
|
"Old 000b:3ab2 by preserved offset delta from live 1360:046e. "
|
||
|
|
"DispatchEvent maps event codes 1/2/4/8/0x10/0x20/0x40/0x100 onto vtable slots "
|
||
|
|
"+0x04/+0x08/+0x0c/+0x10/+0x14/+0x18/+0x1c/+0x24; the 0x40 path also walks child nodes "
|
||
|
|
"and dispatches through child slot +0x34 before optional self-slot +0x1c handling."
|
||
|
|
)
|
||
|
|
|
||
|
|
print(bridge.set_decompiler_comment("1360:0cb2", comment))
|
||
|
|
print(bridge.get_function_by_address("1360:0cb2"))
|