mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-19 18:03:10 -05:00
fix: name the platform a typo meant in every CLI
slots ended a mistyped --platform on a traceback; generate_truth, refresh_data_dirs and auto_fetch exited 0 having done nothing for it. All six now stop on require_platform before any work.
This commit is contained in:
1 parent
803f9dce96
commit
195fb92036
7 files changed
+48
-4
No files matched your search
@@ -32,6 +32,7 @@ from common import (
|
||||
list_registered_platforms,
|
||||
load_database,
|
||||
load_platform_config,
|
||||
require_platform,
|
||||
require_yaml,
|
||||
)
|
||||
|
||||
@@ -441,6 +442,7 @@ def main() -> None:
|
||||
include_archived=True,
|
||||
)
|
||||
elif args.platform:
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
platforms = [args.platform]
|
||||
else:
|
||||
parser.error("Specify --platform or --all")
|
||||
|
||||
@@ -20,6 +20,7 @@ from common import (
|
||||
list_registered_platforms,
|
||||
load_platform_config,
|
||||
native_layer,
|
||||
require_platform,
|
||||
require_yaml,
|
||||
truth_target_dir,
|
||||
yaml_load,
|
||||
@@ -187,6 +188,7 @@ def main() -> None:
|
||||
args.platforms_dir, include_archived=True
|
||||
)
|
||||
else:
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
platforms = [args.platform]
|
||||
|
||||
reports: list[dict] = []
|
||||
|
||||
@@ -28,7 +28,13 @@ from pathlib import Path
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
||||
|
||||
from artifacts import file_lock, write_bytes_atomic, write_text_atomic
|
||||
from common import list_registered_platforms, load_platform_config, native_layer, yaml_load
|
||||
from common import (
|
||||
list_registered_platforms,
|
||||
load_platform_config,
|
||||
native_layer,
|
||||
require_platform,
|
||||
yaml_load,
|
||||
)
|
||||
from exporter import discover_exporters
|
||||
from exporter.baseline import HASH_FIELDS, _hash_values, _single_size, build_native_model
|
||||
|
||||
@@ -535,6 +541,7 @@ def main() -> None:
|
||||
include_archived=True,
|
||||
)
|
||||
else:
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
platforms = [args.platform]
|
||||
|
||||
sys.exit(
|
||||
|
||||
@@ -19,6 +19,7 @@ from common import (
|
||||
load_emulator_profiles,
|
||||
load_platform_config,
|
||||
load_target_config,
|
||||
require_platform,
|
||||
require_yaml,
|
||||
truth_target_dir,
|
||||
write_text_atomic,
|
||||
@@ -88,6 +89,7 @@ def main(argv: list[str] | None = None) -> None:
|
||||
include_archived=True,
|
||||
)
|
||||
else:
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
platforms = [args.platform]
|
||||
|
||||
# A target-narrowed model is a different artifact: written under the
|
||||
|
||||
@@ -25,7 +25,7 @@ import urllib.request
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
from artifacts import file_lock as _file_lock
|
||||
from common import yaml_load
|
||||
from common import require_platform, yaml_load
|
||||
|
||||
try:
|
||||
import yaml
|
||||
@@ -539,6 +539,9 @@ def main() -> None:
|
||||
format="%(message)s",
|
||||
)
|
||||
|
||||
if args.platform:
|
||||
# The registry sits in the platforms directory it serves.
|
||||
require_platform(args.platform, os.path.dirname(args.registry) or ".")
|
||||
registry = load_registry(args.registry)
|
||||
|
||||
if args.key:
|
||||
|
||||
@@ -809,6 +809,7 @@ def main() -> int:
|
||||
list_registered_platforms,
|
||||
load_emulator_profiles,
|
||||
load_platform_config,
|
||||
require_platform,
|
||||
)
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
@@ -832,6 +833,8 @@ def main() -> int:
|
||||
with open(args.db, encoding="utf-8") as handle:
|
||||
db = json.load(handle)
|
||||
profiles = load_emulator_profiles(args.emulators_dir)
|
||||
if args.platform:
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
names = (
|
||||
[args.platform]
|
||||
if args.platform
|
||||
|
||||
Reference in new issue
Block a user