fix: games tools write whole files, name options

The games importers wrote through fixed .part names, the new options had
no help text, and romfolders stopped on the first setup the offline cache
lacked. RetroArch's rom folder map is regenerated from its source spec
(path null, as the schema says). The installer's Python 3.8 job imports
the games tests without pyyaml, so the region rules load lazily.
This commit is contained in:
Abdessamad Derraz committed 2026-11-03 22:46:17 +01:00
1 parent af2e930d32
commit fd7dd0efe5
12 files changed
+82 -40

No files matched your search

+8 -4
View File
@@ -237,10 +237,14 @@ def summary(regions: dict, extras: dict) -> dict:
def main() -> int:
parser = argparse.ArgumentParser(allow_abbrev=False, description=__doc__.splitlines()[0])
parser.add_argument("--regions", type=Path, default=REGIONS_FILE)
parser.add_argument("--extras", type=Path, default=EXTRAS_FILE)
parser.add_argument("--headers", type=Path, default=HEADERS_FILE)
parser.add_argument("--emulators-dir", default="emulators")
parser.add_argument("--regions", type=Path, default=REGIONS_FILE,
help=f"region rules to check (default {REGIONS_FILE})")
parser.add_argument("--extras", type=Path, default=EXTRAS_FILE,
help=f"extra-file rules to check (default {EXTRAS_FILE})")
parser.add_argument("--headers", type=Path, default=HEADERS_FILE,
help=f"header readers the triggers name (default {HEADERS_FILE})")
parser.add_argument("--emulators-dir", default="emulators",
help="profiles the rules are checked against (default emulators)")
parser.add_argument("--json", action="store_true", help="print the summary as JSON")
args = parser.parse_args()