mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 04:48:54 -06:00
refactor: move the games commands into games/
This commit is contained in:
1 parent
d413fb263b
commit
a60ec786b6
24 files changed
+1062
-941
No files matched your search
@@ -0,0 +1,18 @@
|
||||
"""The published arcade documents: each game set's BIOS parent and device sets."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from games.inputs import load_json
|
||||
|
||||
|
||||
def build_arcade(directory: Path) -> dict[str, dict]:
|
||||
if not directory.is_dir():
|
||||
return {}
|
||||
# The driver sources and the clone parents place a search path's sets at
|
||||
# build time (common.rom_search_sets): the installer reads none of them.
|
||||
return {
|
||||
path.stem: {k: v for k, v in load_json(path).items() if k not in ("sources", "parents")}
|
||||
for path in sorted(directory.glob("*.json"))
|
||||
}
|
||||
Reference in new issue
Block a user