mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 20:32:32 -05: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user