mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-23 13:09:44 +00:00
Idea: allow postfixing of func names (#1435)
Now that @sozud has added function similarity, I wonder if it's worth including prefix matches in the results of function_finder. This would let us name a scratch ex: `EntityWeaponAttack_w_053` and have it still show up in functions.md. Thoughts?
This commit is contained in:
parent
1e0458ff10
commit
ef4bd2feef
@ -44,8 +44,7 @@ def find_scratches(name, platform, local_asm=None, use_local=False):
|
||||
for result in scratches["results"]:
|
||||
if not "name" in result:
|
||||
continue
|
||||
# seems to give approximate matches, skip these
|
||||
if result["name"] != name:
|
||||
if not result["name"].startswith(name):
|
||||
continue
|
||||
if result["platform"] != platform:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user