mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 20:38:52 -06:00
fix: accept only registered platforms
require_platform checks the registry instead of any platforms/<name>.yml: verify --platform _shared reported 0/0 present and exited 0. --all and --platform resolve through model.cliargs.selected_platforms in auto_fetch, generate_truth, diff_truth, export_native and verify. The truth directory is core.paths.TRUTH_DIR for its writer and its three readers, and the remaining literal database and profile paths read core.paths and add_repo_inputs.
This commit is contained in:
1 parent
a732e69251
commit
ed19ae4198
15 files changed
+69
-67
No files matched your search
@@ -18,6 +18,7 @@ import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from core.cli import add_repo_inputs
|
||||
from core.hashing import compute_hashes
|
||||
from core.sizes import size_text
|
||||
from resolve.directories import expand_directory_entries
|
||||
@@ -110,9 +111,7 @@ def other_copies(rows: list[dict], bios_dir: Path) -> list[dict]:
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(allow_abbrev=False, description=__doc__.splitlines()[0])
|
||||
parser.add_argument("--db", default="database.json", help="database to read (default: %(default)s)")
|
||||
parser.add_argument("--emulators-dir", default="emulators", help="profiles (default: %(default)s)")
|
||||
parser.add_argument("--platforms-dir", default="platforms", help="platform lists (default: %(default)s)")
|
||||
add_repo_inputs(parser, "db", "emulators", "platforms")
|
||||
parser.add_argument("--install-dir", default="install", type=Path,
|
||||
help="install manifests, whose files are shipped (default: %(default)s)")
|
||||
parser.add_argument("--json", action="store_true", help="print the list as JSON")
|
||||
|
||||
Reference in new issue
Block a user