mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 18:17: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
@@ -18,6 +18,7 @@ from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
from core.paths import BIOS_DIR
|
||||
from core.hashing import file_digest
|
||||
|
||||
|
||||
@@ -63,7 +64,7 @@ def _manufacturer(path: Path, root: Path) -> str:
|
||||
return parts[0] if len(parts) > 1 else ""
|
||||
|
||||
|
||||
def scan(bios_dir: str = "bios") -> list[Duplicate]:
|
||||
def scan(bios_dir: str = BIOS_DIR) -> list[Duplicate]:
|
||||
"""Group the tree by content and keep the groups that cross makers.
|
||||
|
||||
Only files that share a size can share a content, so a size held by one
|
||||
|
||||
Reference in new issue
Block a user