Crusader_Decomp/py_mcp_query.py
Maddo a76b071049 Enhance animation and control tests; improve rendering and shape loading validation
- Added tests for player animations in animation_archive_tests to ensure all animations are loaded correctly.
- Updated entity_dispatch_entry_tests to validate animation direction updates and added tests for sixteen-direction animations.
- Expanded isometric_controls_tests with comprehensive key event handling and action requests for various controller states.
- Improved map_renderer_tests by adding viewport rendering tests to compare unbounded and bounded views.
- Enhanced shape_archive_tests to validate shape frame loading and decoding consistency.
2026-10-07 00:18:08 +02:00

28 lines
728 B
Python

import json
addrs = ["000d:44df","000d:4c99","000d:7000","000d:46ec"]
results = {}
try:
import ghidra_mcp
except Exception as e:
print(json.dumps({"error": "missing ghidra_mcp module", "exc": str(e)}))
raise SystemExit(1)
for a in addrs:
entry = {}
try:
entry['decompile'] = ghidra_mcp.decompile_function(a)
except Exception as e:
entry['decompile_error'] = str(e)
try:
entry['disassemble'] = ghidra_mcp.disassemble_function(a)
except Exception as e:
entry['disassemble_error'] = str(e)
try:
entry['xrefs'] = ghidra_mcp.get_xrefs(a)
except Exception as e:
entry['xrefs_error'] = str(e)
results[a] = entry
print(json.dumps(results))