mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 02:57: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
+2
-12
@@ -21,9 +21,8 @@ import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from model.cliargs import platform_arg, require_platform
|
||||
from model.cliargs import platform_arg, selected_platforms
|
||||
from core.cli import add_repo_inputs, require_directory
|
||||
from model.registry import list_registered_platforms
|
||||
from model.database import load_database, load_optional_database
|
||||
from model.platforms import load_platform_config
|
||||
from model.safeparse import require_yaml
|
||||
@@ -59,16 +58,7 @@ def main() -> None:
|
||||
|
||||
db = load_database(args.db)
|
||||
|
||||
if args.all:
|
||||
platforms = list_registered_platforms(
|
||||
args.platforms_dir,
|
||||
)
|
||||
elif args.platform:
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
platforms = [args.platform]
|
||||
else:
|
||||
parser.error("Specify --platform or --all")
|
||||
return
|
||||
platforms = selected_platforms(args, parser)
|
||||
|
||||
all_still_missing = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user