mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-26 01:31:20 +00:00
Fix roadmap
This commit is contained in:
parent
c2a541a5c1
commit
4a62a6afa2
@ -10,6 +10,7 @@
|
|||||||
from typing import Iterator, List, Optional, Tuple
|
from typing import Iterator, List, Optional, Tuple
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from isledecomp import Bin as IsleBin
|
from isledecomp import Bin as IsleBin
|
||||||
|
from isledecomp.bin import InvalidVirtualAddressError
|
||||||
from isledecomp.cvdump import Cvdump
|
from isledecomp.cvdump import Cvdump
|
||||||
from isledecomp.compare import Compare as IsleCompare
|
from isledecomp.compare import Compare as IsleCompare
|
||||||
from isledecomp.types import SymbolType
|
from isledecomp.types import SymbolType
|
||||||
@ -87,7 +88,7 @@ def print_sections(sections):
|
|||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
ALLOWED_TYPE_ABBREVIATIONS = ["fun", "dat", "poi", "str", "vta"]
|
ALLOWED_TYPE_ABBREVIATIONS = ["fun", "dat", "poi", "str", "vta", "flo"]
|
||||||
|
|
||||||
|
|
||||||
def match_type_abbreviation(mtype: Optional[SymbolType]) -> str:
|
def match_type_abbreviation(mtype: Optional[SymbolType]) -> str:
|
||||||
@ -456,7 +457,16 @@ def to_roadmap_row(match):
|
|||||||
module_name,
|
module_name,
|
||||||
)
|
)
|
||||||
|
|
||||||
results = list(map(to_roadmap_row, engine.get_all()))
|
def roadmap_row_generator(matches):
|
||||||
|
for match in matches:
|
||||||
|
try:
|
||||||
|
yield to_roadmap_row(match)
|
||||||
|
except InvalidVirtualAddressError:
|
||||||
|
# This is here to work around the fact that we have RVA
|
||||||
|
# values (i.e. not real virtual addrs) in our compare db.
|
||||||
|
pass
|
||||||
|
|
||||||
|
results = list(roadmap_row_generator(engine.get_all()))
|
||||||
|
|
||||||
if args.order is not None:
|
if args.order is not None:
|
||||||
suggest_order(results, module_map, args.order)
|
suggest_order(results, module_map, args.order)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user