mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-25 04:22:48 +00:00
feat: flatten zips, standalone copies, retropie grouping
This commit is contained in:
parent
9ba8b02ff1
commit
8f93ee2239
11 changed files with 1332 additions and 22 deletions
|
|
@ -743,15 +743,13 @@ def group_identical_platforms(
|
|||
inherits[platform] = False
|
||||
continue
|
||||
|
||||
base_dest = config.get("base_destination", "")
|
||||
entries = []
|
||||
for sys_id, system in sorted(config.get("systems", {}).items()):
|
||||
for fe in system.get("files", []):
|
||||
dest = fe.get("destination", fe.get("name", ""))
|
||||
full_dest = f"{base_dest}/{dest}" if base_dest else dest
|
||||
sha1 = fe.get("sha1", "")
|
||||
md5 = fe.get("md5", "")
|
||||
entries.append(f"{full_dest}|{sha1}|{md5}")
|
||||
entries.append(f"{dest}|{sha1}|{md5}")
|
||||
|
||||
fp = hashlib.sha1("|".join(sorted(entries)).encode()).hexdigest()
|
||||
if target_cores_cache:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue