Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match Functions with Same Name in
dups
(Xeeynamo#1449)
The duplicates report has several false negatives when a function has the same name as another function which has not been decompiled. This affects overlays which share many of the same function names (e.g. `EntityWeaponAttack`). The duplicates tool now parses the `INCLUDE_ASM` macro to extract the path and ASM file. It then uses that when determining whether or not each ASM file is actually included or not. Previously, only the function name was checked, so if any `INCLUDE_ASM` file had the target function name, it would be marked as not decompiled. Before: % | Decomp? | Name | Asm Path -----|-------|-------------------------------|-------------------------------- | 1.00 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_008/EntityWeaponAttack.s | 1.00 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_009/EntityWeaponAttack.s | 0.91 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_010/EntityWeaponAttack.s | 1.00 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_011/EntityWeaponAttack.s | 0.98 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_025/EntityWeaponAttack.s | 1.00 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_026/EntityWeaponAttack.s | 1.00 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_027/EntityWeaponAttack.s | 1.00 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_028/EntityWeaponAttack.s | 0.97 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_058/EntityWeaponAttack.s After: % | Decomp? | Name | Asm Path -----|-------|-------------------------------|-------------------------------- 1.00 | true | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_008/EntityWeaponAttack.s 1.00 | true | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_009/EntityWeaponAttack.s 0.91 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_010/EntityWeaponAttack.s 1.00 | true | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_011/EntityWeaponAttack.s 0.98 | false | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_025/EntityWeaponAttack.s 1.00 | true | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_026/EntityWeaponAttack.s 1.00 | true | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_027/EntityWeaponAttack.s 1.00 | true | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_028/EntityWeaponAttack.s 0.97 | true | EntityWeaponAttack | ../../asm/us/weapon/nonmatchings/w_058/EntityWeaponAttack.s (note: `w_008`, `w_009`, and `w_011` are decompiled in my workspace, but not in GH) Co-authored-by: Jonathan Hohle <[email protected]>
- Loading branch information