mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 10:07:48 -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
@@ -8,6 +8,7 @@ import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from core.paths import PLATFORMS_DIR
|
||||
import yaml
|
||||
|
||||
from core import upstream
|
||||
@@ -92,7 +93,7 @@ def _platform_cores(emulators_dir: str, platforms_dir: str) -> tuple[tuple[str,
|
||||
|
||||
|
||||
def shipping_platforms(
|
||||
name: str, emulators_dir: str, platforms_dir: str = "platforms",
|
||||
name: str, emulators_dir: str, platforms_dir: str = PLATFORMS_DIR,
|
||||
) -> list[str]:
|
||||
"""The registered platforms whose cores resolve to this profile."""
|
||||
return [
|
||||
@@ -107,7 +108,7 @@ def shipping_platforms(
|
||||
def bump_commit(
|
||||
path: Path, report: ProfileReport, accept_changed: bool = False,
|
||||
cache_dir: str = DEFAULT_CACHE, offline: bool = False,
|
||||
platforms_dir: str = "platforms",
|
||||
platforms_dir: str = PLATFORMS_DIR,
|
||||
) -> bool:
|
||||
"""Advance source_commit to HEAD when nothing needs a read again.
|
||||
|
||||
|
||||
Reference in new issue
Block a user