mirror of
https://github.com/zeldaret/botw
synced 2026-08-16 20:57:31 -04:00
tools: Add script to automatically identify matches
Given a list L of functions to identify and a small list of candidates C, this tool will attempt to automatically identify matches by checking each function in L against each function in C. Very slow, but this should work well enough for small lists.
This commit is contained in:
@@ -12,7 +12,7 @@ def dump_fn(name: str) -> None:
|
||||
fn = util.elf.get_fn_from_my_elf(name)
|
||||
path = expected_dir / f"{name}.bin"
|
||||
path.parent.mkdir(exist_ok=True)
|
||||
path.write_bytes(fn)
|
||||
path.write_bytes(fn.data)
|
||||
except KeyError:
|
||||
utils.fail("could not find function")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user