refactor(clew): remove AST extraction progress counter
This commit is contained in:
@@ -141,13 +141,12 @@ def extract_game_ast(output_root: Path, extracted_root: Path, overwrite: bool) -
|
|||||||
lambda path: path.is_file() and path.suffix.lower() in {".rpyc", ".rpymc"},
|
lambda path: path.is_file() and path.suffix.lower() in {".rpyc", ".rpymc"},
|
||||||
)
|
)
|
||||||
LOG.info("found %d compiled Ren'Py scripts under %s", len(scripts), game_root)
|
LOG.info("found %d compiled Ren'Py scripts under %s", len(scripts), game_root)
|
||||||
total = len(scripts)
|
for script in scripts:
|
||||||
for index, script in enumerate(scripts, start=1):
|
|
||||||
output = ast_dump_output_path(output_root, extracted_root, game_root, script)
|
output = ast_dump_output_path(output_root, extracted_root, game_root, script)
|
||||||
if output.exists() and not overwrite:
|
if output.exists() and not overwrite:
|
||||||
LOG.info("skipping existing AST dump %d/%d: %s", index, total, output)
|
LOG.info("skipping existing AST dump: %s", output)
|
||||||
continue
|
continue
|
||||||
LOG.info("dumping AST %d/%d: %s", index, total, script)
|
LOG.info("dumping AST: %s", script)
|
||||||
run_extract_renpy_ast(game_root, script, output)
|
run_extract_renpy_ast(game_root, script, output)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user