Ghidra 12.2 project and full dump of isaac-ng.exe v1.9.7.17, query scripts, notes indexed by entity, anm2/rooms reimplementations, and db/ (names + fields) that build.sh re-applies. Fixes awk numeric address comparison in find.sh/decompile.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
545 B
Python
12 lines
545 B
Python
"""triage.py KEY STATUS COMMENT: sets a reference entity record's triage and comment (file formatting kept)."""
|
|
import json, sys
|
|
p = 'tools/reference/rebirth/entities.json'
|
|
text = open(p).read()
|
|
records = json.loads(text)
|
|
key, status, comment = sys.argv[1:4]
|
|
record = next(r for r in records if r.get('key') == key)
|
|
record['triage'] = status
|
|
record['comment'] = comment
|
|
indent = 1 if '\n "' in text[:200] or '\n {' in text[:20] else 2
|
|
open(p, 'w').write(json.dumps(records, indent=1, ensure_ascii=False) + ('\n' if text.endswith('\n') else ''))
|