forked from Keelrleek/Harbor
re_match: byte-match functions with the game's compiler (Visual C++ 2003)
Runs R:/Workspace/Tools/re/match71.py for up to 50 addresses from main or an agent's worktree; configured by matcher/match_flags in [reverse].
This commit is contained in:
1 parent
584fabeb74
commit
c7e678eacb
5 files changed
+78
-3
No files matched your search
@@ -0,0 +1,10 @@
|
||||
"""Stands in for match71.py: writes one result per --only address."""
|
||||
import json
|
||||
import sys
|
||||
|
||||
args = sys.argv[1:]
|
||||
only = args[args.index("--only") + 1].split(",")
|
||||
out = args[args.index("--json") + 1]
|
||||
rows = [{"address": a, "file": a + "_F.c", "status": "match", "similarity": 1.0} for a in only]
|
||||
open(out, "w", encoding="utf-8").write(json.dumps(rows))
|
||||
print(f"cl 13.10 {args[args.index('--flags') + 1]}: {len(rows)} functions: {len(rows)} match")
|
||||
Reference in new issue
Block a user