mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 18:47:53 -06:00
refactor: share CLI options and default paths
core.paths holds the default database, platforms, emulators and bios paths, core.cli declares the options built on them (add_repo_inputs) and the --emulator/--system modes verify and generate_pack share. model.targets.target_scope answers --target for a command line, model.profiles.no_profile_for_systems the system with no emulator. tests/sources.declared_options reads the options a script declares through either form.
This commit is contained in:
1 parent
348d5b51c3
commit
cf03dcb2ef
50 files changed
+260
-405
No files matched your search
@@ -13,6 +13,7 @@ from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, TypedDict
|
||||
|
||||
from core.paths import EMULATORS_DIR, PLATFORMS_DIR
|
||||
from core.artifacts import set_plain_mode
|
||||
from core.options import reject_unknown
|
||||
from model.registry import list_registered_platforms
|
||||
@@ -111,12 +112,12 @@ class FinalizeOptions(TypedDict, total=False):
|
||||
class _FinalizeSettings:
|
||||
"""FinalizeOptions with their defaults."""
|
||||
|
||||
platforms_dir: str = "platforms"
|
||||
platforms_dir: str = PLATFORMS_DIR
|
||||
skip_conformance: bool = False
|
||||
data_registry: dict | None = None
|
||||
regions: list[str] | None = None
|
||||
target_name: str | None = None
|
||||
emulators_dir: str = "emulators"
|
||||
emulators_dir: str = EMULATORS_DIR
|
||||
no_game_data: bool = False
|
||||
pack_systems_by_name: dict[str, dict] | None = None
|
||||
built: Iterable[str] | None = None
|
||||
|
||||
Reference in new issue
Block a user