mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 22:08:56 -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
@@ -19,7 +19,7 @@ from typing import IO, TYPE_CHECKING, TypedDict
|
||||
from unattended import worktree
|
||||
import core_probe
|
||||
from core import childenv, hostguard
|
||||
from core.paths import REPO_ROOT
|
||||
from core.paths import DB_FILE, REPO_ROOT
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing_extensions import Unpack
|
||||
@@ -177,7 +177,7 @@ class Paths:
|
||||
def default(cls) -> Paths:
|
||||
main = worktree.main_checkout()
|
||||
return cls(root=REPO_ROOT, home=main / ".cache" / "campaign",
|
||||
content=main / ".cache" / "test-content", db=REPO_ROOT / "database.json")
|
||||
content=main / ".cache" / "test-content", db=REPO_ROOT / DB_FILE)
|
||||
|
||||
|
||||
ROMFETCH_PASSED = ("XDG_CONFIG_HOME", "XDG_CACHE_HOME", "XDG_DATA_HOME")
|
||||
|
||||
@@ -11,7 +11,7 @@ import tempfile
|
||||
from collections.abc import Callable, Iterable
|
||||
from pathlib import Path
|
||||
|
||||
from core.paths import REPO_ROOT
|
||||
from core.paths import DB_FILE, REPO_ROOT
|
||||
from model.profiles import entry_system_ids
|
||||
from core_probe import BUILTIN
|
||||
from probes.content import Content, load_content, load_file
|
||||
@@ -211,7 +211,7 @@ def pack_files(emulator: str, region: str, work: Path) -> dict[str, Path]:
|
||||
def local_resolver() -> Callable[[dict], Path | None]:
|
||||
from model.database import load_database
|
||||
|
||||
db = load_database(str(REPO_ROOT / "database.json"))
|
||||
db = load_database(str(REPO_ROOT / DB_FILE))
|
||||
return lambda entry: held_file(entry, db, REPO_ROOT)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user