1
0
mirror of synced 2024-11-27 23:50:47 +01:00

Fix AFP decompile option.

This commit is contained in:
Jennifer Taylor 2021-09-20 01:16:58 +00:00
parent a6e3ec524a
commit b56481ca06

View File

@ -354,7 +354,7 @@ def parse_afp(afp: str, bsi: str, *, decompile_bytecode: bool=False, verbose: bo
return 0
def decompile_afp(afp: str, bsi: str, output_dir: str, *, decompile_bytecode: bool=False, verbose: bool=False) -> int:
def decompile_afp(afp: str, bsi: str, output_dir: str, *, verbose: bool=False) -> int:
# First, load the AFP and BSI files
with open(afp, "rb") as bafp:
with open(bsi, "rb") as bbsi:
@ -1227,7 +1227,7 @@ def main() -> int:
elif args.action == "parseafp":
return parse_afp(args.afp, args.bsi, decompile_bytecode=args.decompile_bytecode, verbose=args.verbose)
elif args.action == "decompile":
return decompile_afp(args.afp, args.bsi, args.directory, decompile_bytecode=args.decompile_bytecode, verbose=args.verbose)
return decompile_afp(args.afp, args.bsi, args.directory, verbose=args.verbose)
elif args.action == "parsegeo":
return parse_geo(args.geo, verbose=args.verbose)
elif args.action == "list":