mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
fix: count emulator page files by slot
This commit is contained in:
1 parent
18e61fabcb
commit
ba2fee0920
3 files changed
+57
-19
No files matched your search
+14
-11
@@ -427,6 +427,20 @@ def _resolve_archive_source(
|
||||
return result if result is not None else "missing"
|
||||
|
||||
|
||||
def slot_key(f: dict) -> tuple:
|
||||
"""The slot a profile entry fills: its entries on one slot are the
|
||||
versions its code accepts there, and holding any of them fills it."""
|
||||
fname = f.get("name", "")
|
||||
return (
|
||||
fname,
|
||||
f.get("archive"),
|
||||
f.get("path") or fname,
|
||||
f.get("system"),
|
||||
f.get("variant_group"),
|
||||
f.get("mode", "both"),
|
||||
)
|
||||
|
||||
|
||||
def _cross_reference_profile(
|
||||
emu_name: str,
|
||||
profile: dict,
|
||||
@@ -470,17 +484,6 @@ def _cross_reference_profile(
|
||||
archive_gaps: dict[tuple, dict] = {}
|
||||
seen_files: set[tuple] = set()
|
||||
|
||||
def slot_key(f: dict) -> tuple:
|
||||
fname = f.get("name", "")
|
||||
return (
|
||||
fname,
|
||||
f.get("archive"),
|
||||
f.get("path") or fname,
|
||||
f.get("system"),
|
||||
f.get("variant_group"),
|
||||
f.get("mode", "both"),
|
||||
)
|
||||
|
||||
# The entries of one profile on one slot are the versions its code
|
||||
# accepts there (raze's ten DUKE3D.GRP): holding any of them fills the
|
||||
# slot, as verify --emulator credits it.
|
||||
|
||||
Reference in new issue
Block a user