mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-18 18:22:47 +00:00
fix: revert verify dedup (breaks counts), optimize pack generation
verify.py: removed destination dedup - verify counts ALL platform entries (398 for RetroArch). Pack deduplicates at generation (395). The delta (3 files: c52/g7400/jopac.bin) is correct behavior. generate_pack.py: skip build_zip_contents_index() when no zipped_file entries exist. RetroArch pack: 20s -> 11s (no ZIP scan needed).
This commit is contained in:
parent
06ea19ee20
commit
84ab0ea6d3
1 changed files with 7 additions and 1 deletions
|
|
@ -321,7 +321,13 @@ def generate_pack(
|
|||
config = load_platform_config(platform_name, platforms_dir)
|
||||
db = load_database(db_path)
|
||||
|
||||
zip_contents = build_zip_contents_index(db)
|
||||
# Only build the expensive ZIP contents index if the platform has zipped_file entries
|
||||
has_zipped = any(
|
||||
fe.get("zipped_file")
|
||||
for sys in config.get("systems", {}).values()
|
||||
for fe in sys.get("files", [])
|
||||
)
|
||||
zip_contents = build_zip_contents_index(db) if has_zipped else {}
|
||||
|
||||
verification_mode = config.get("verification_mode", "existence")
|
||||
platform_display = config.get("platform", platform_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue