mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-22 17:47:48 -06:00
chore: merge the expert installer options
This commit is contained in:
commit
750a6eb8e6
69 files changed
+330998
-4147
No files matched your search
+1
-1
@@ -16,7 +16,7 @@
|
||||
# and Invoke-WebRequest throws on a cut transfer before the hash is read:
|
||||
# the site's build rewrites this line there (scripts/sitebootstrap.py).
|
||||
$mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
||||
$defaultInstallSha256 = "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9"
|
||||
$defaultInstallSha256 = "4b8e2e8e5343dbf75f6c9b089993cce3b7f64ad1e7a5a6c91993a07ec9674bc6"
|
||||
# The pin above refuses any changed byte: this cap only stops a body that
|
||||
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
||||
$maximumInstallerBytes = 8MB
|
||||
|
||||
+673
-30
@@ -104,6 +104,9 @@ def _checked_base_url(value: str) -> str:
|
||||
BASE_URL = _checked_base_url(os.environ.get("RETROBIOS_BASE_URL", DEFAULT_BASE_URL))
|
||||
MANIFEST_URL = f"{BASE_URL}/install/{{platform}}.json"
|
||||
TARGETS_URL = f"{BASE_URL}/install/targets/{{platform}}.json"
|
||||
# What --standalone reads, apart from the list every run downloads.
|
||||
STANDALONE_DIR = "standalone"
|
||||
STANDALONE_URL = f"{BASE_URL}/install/standalone/{{platform}}.json"
|
||||
# The platforms that publish a core list per board, install/targets/ in the
|
||||
# repository: a test holds the two equal. Offline, a platform outside it
|
||||
# has no hardware targets, where the run sent the user after a list that
|
||||
@@ -124,6 +127,7 @@ MAX_RETRIES = 3
|
||||
CONNECT_TIMEOUT = 4.0
|
||||
MAX_MANIFEST_BYTES = 16 * 1024 * 1024
|
||||
MAX_TARGETS_BYTES = 4 * 1024 * 1024
|
||||
MAX_STANDALONE_BYTES = 16 * 1024 * 1024
|
||||
MAX_MANIFEST_FILES = 100_000
|
||||
MAX_DOWNLOAD_SIZE = 1024 * 1024 * 1024
|
||||
# A data directory's source archive: PCSX2's source tarball is the largest.
|
||||
@@ -4162,9 +4166,153 @@ def _check_entry(
|
||||
_check_omission(claim, dest)
|
||||
for field in (*SELECTION_FIELDS, "declared_in"):
|
||||
_check_tags(entry, field, dest)
|
||||
_check_expert_fields(entry, dest)
|
||||
return size, largest
|
||||
|
||||
|
||||
def _check_expert_fields(entry: dict, dest: str) -> None:
|
||||
"""`truth` and `slot`, what --source truth and --one-per-slot read."""
|
||||
if "truth" in entry and entry["truth"] is not False:
|
||||
raise ValueError(f"invalid truth flag for {dest}")
|
||||
slot = entry.get("slot")
|
||||
if slot is None:
|
||||
return
|
||||
if not isinstance(slot, dict) or not {"groups", "keys"} <= set(slot) <= {
|
||||
"groups", "keys", "also"}:
|
||||
raise ValueError(f"invalid slot for {dest}")
|
||||
also = slot.get("also", [])
|
||||
if not isinstance(also, list) or len(also) > MAX_SELECTION_TAGS:
|
||||
raise ValueError(f"invalid slot for {dest}")
|
||||
for chain in [slot, *also]:
|
||||
if not isinstance(chain, dict) or not {"groups", "keys"} <= set(chain) or (
|
||||
chain is not slot and set(chain) != {"groups", "keys"}):
|
||||
raise ValueError(f"invalid slot for {dest}")
|
||||
_check_slot_chain(chain, dest)
|
||||
|
||||
|
||||
def _check_slot_chain(chain: dict, dest: str) -> None:
|
||||
"""One name's groups and the claims at each key its lookup tries."""
|
||||
if not isinstance(chain.get("groups"), list):
|
||||
raise ValueError(f"invalid slot groups for {dest}")
|
||||
_check_tags(chain, "groups", dest)
|
||||
keys = chain["keys"]
|
||||
if not isinstance(keys, list) or len(keys) > MAX_SELECTION_TAGS:
|
||||
raise ValueError(f"invalid slot keys for {dest}")
|
||||
for claims in keys:
|
||||
if not isinstance(claims, dict) or not claims or len(claims) > MAX_SELECTION_TAGS:
|
||||
raise ValueError(f"invalid slot claims for {dest}")
|
||||
for name, claim in claims.items():
|
||||
if not isinstance(claim, dict):
|
||||
raise ValueError(f"invalid slot claim for {dest}")
|
||||
ranks = claim.get("ranks")
|
||||
if (not isinstance(name, str) or not 0 < len(name) <= 256
|
||||
or not set(claim) <= {"ranks", "regions", "sets"}
|
||||
or not isinstance(ranks, list) or not ranks
|
||||
or len(ranks) > MAX_SELECTION_TAGS
|
||||
or not all(rank is None or (isinstance(rank, int)
|
||||
and not isinstance(rank, bool))
|
||||
for rank in ranks)):
|
||||
raise ValueError(f"invalid slot claim for {dest}")
|
||||
_check_tags(claim, "regions", dest)
|
||||
_check_tags(claim, "sets", dest)
|
||||
|
||||
|
||||
def _check_omitted_entry(entry: dict, dest: str) -> None:
|
||||
"""An omission's fields, its cores' claims and its expert fields, the
|
||||
same for omitted_files and truth_omitted."""
|
||||
_check_omission(entry, dest)
|
||||
_check_root(entry, dest, omitted=True)
|
||||
claims = entry.get("alternatives", [])
|
||||
if not isinstance(claims, list) or len(claims) > MAX_SELECTION_TAGS:
|
||||
raise ValueError(f"invalid omitted alternatives for {dest}")
|
||||
for claim in claims:
|
||||
claim_cores = claim.get("cores") if isinstance(claim, dict) else None
|
||||
if (
|
||||
not isinstance(claim, dict)
|
||||
or set(claim) != {"cores"}
|
||||
or not isinstance(claim_cores, list)
|
||||
or not claim_cores
|
||||
or not all(isinstance(core, str) for core in claim_cores)
|
||||
):
|
||||
raise ValueError(f"invalid omitted alternative for {dest}")
|
||||
for field in (*SELECTION_FIELDS, "declared_in"):
|
||||
_check_tags(entry, field, dest)
|
||||
_check_expert_fields(entry, dest)
|
||||
|
||||
|
||||
def _check_truth_lists(data: dict, seen_destinations: set[str]) -> int:
|
||||
"""truth_files and truth_omitted, what --source truth adds to the list:
|
||||
each a valid entry, and the truth list it makes holds each destination
|
||||
once. Returns the largest size the truth files may fetch."""
|
||||
files = data.get("truth_files")
|
||||
if files is None:
|
||||
if "truth_omitted" in data:
|
||||
raise ValueError("truth_omitted without truth_files")
|
||||
return 0
|
||||
if not isinstance(files, list) or len(files) > MAX_MANIFEST_FILES:
|
||||
raise ValueError("invalid truth_files list")
|
||||
kept = {_entry_key(entry) for entry in data.get("files", [])
|
||||
if entry.get("truth", True)}
|
||||
seen: set[str] = set()
|
||||
largest = 0
|
||||
for index, entry in enumerate(files):
|
||||
_size, most = _check_entry(entry, f"truth_files[{index}]", seen)
|
||||
largest += most
|
||||
if seen & kept:
|
||||
raise ValueError("truth_files repeats a destination the truth list keeps")
|
||||
omitted = data.get("truth_omitted", [])
|
||||
if not isinstance(omitted, list) or len(omitted) > MAX_MANIFEST_FILES:
|
||||
raise ValueError("invalid truth_omitted list")
|
||||
for index, entry in enumerate(omitted):
|
||||
if not isinstance(entry, dict):
|
||||
raise ValueError(f"truth_omitted[{index}] must be an object")
|
||||
dest = str(_safe_relative_path(entry.get("dest"), f"truth_omitted[{index}].dest"))
|
||||
_check_omitted_entry(entry, dest)
|
||||
return largest
|
||||
|
||||
|
||||
def _check_standalone_layouts(data: object, manifest: dict, plat: str) -> dict:
|
||||
"""install/standalone/<platform>.json, checked as the list is: per
|
||||
emulator the list names, entries or [dest, sha1] pairs whose content
|
||||
the list carries. Returns the layouts."""
|
||||
if not isinstance(data, dict) or data.get("schema") != 1 or data.get("platform") != plat:
|
||||
raise ValueError(f"it is no standalone layout of {plat}")
|
||||
layouts = data.get("standalone_layouts")
|
||||
if not isinstance(layouts, dict) or len(layouts) > MAX_SELECTION_TAGS:
|
||||
raise ValueError("invalid standalone_layouts")
|
||||
if sorted(layouts) != sorted(manifest.get("standalone_builds") or []):
|
||||
raise ValueError("its builds are not the ones the file list names")
|
||||
sizes = {
|
||||
copy["sha1"]: copy.get("size", 0)
|
||||
for entry in [*manifest.get("files", []), *(manifest.get("truth_files") or [])]
|
||||
for copy in [entry, *entry.get("alternatives", []), *entry.get("slot_choices", [])]
|
||||
if isinstance(copy, dict) and copy.get("sha1")
|
||||
and (copy.get("repo_path") or copy.get("release_asset"))
|
||||
}
|
||||
for name, items in layouts.items():
|
||||
if (not isinstance(name, str) or not 0 < len(name) <= 256
|
||||
or not isinstance(items, list) or len(items) > MAX_MANIFEST_FILES):
|
||||
raise ValueError("invalid standalone_layouts entry")
|
||||
seen: set[str] = set()
|
||||
largest = 0
|
||||
for index, item in enumerate(items):
|
||||
where = f"standalone_layouts[{name!r}][{index}]"
|
||||
if isinstance(item, list):
|
||||
if (len(item) != 2 or not isinstance(item[1], str)
|
||||
or item[1] not in sizes):
|
||||
raise ValueError(f"invalid {where}")
|
||||
key = _entry_key({"dest": str(_safe_relative_path(item[0], where))})
|
||||
if key in seen:
|
||||
raise ValueError(f"duplicate destination in {where}")
|
||||
seen.add(key)
|
||||
largest += int(sizes[item[1]] or 0)
|
||||
else:
|
||||
largest += _check_entry(item, where, seen)[1]
|
||||
if largest > MAX_TOTAL_DOWNLOAD_SIZE:
|
||||
raise ValueError("standalone build size exceeds safety limit")
|
||||
return layouts
|
||||
|
||||
|
||||
def _check_data_directory(entry: object, where: str) -> None:
|
||||
"""A data directory: its source archive, its mapping, its file list."""
|
||||
if not isinstance(entry, dict):
|
||||
@@ -4294,23 +4442,14 @@ def _validate_manifest(data: object, plat: str) -> dict:
|
||||
if key in seen_destinations or key in seen_omitted:
|
||||
raise ValueError(f"duplicate or conflicting omitted destination: {dest}")
|
||||
seen_omitted.add(key)
|
||||
_check_omission(entry, dest)
|
||||
_check_root(entry, dest, omitted=True)
|
||||
claims = entry.get("alternatives", [])
|
||||
if not isinstance(claims, list) or len(claims) > MAX_SELECTION_TAGS:
|
||||
raise ValueError(f"invalid omitted alternatives for {dest}")
|
||||
for claim in claims:
|
||||
claim_cores = claim.get("cores") if isinstance(claim, dict) else None
|
||||
if (
|
||||
not isinstance(claim, dict)
|
||||
or set(claim) != {"cores"}
|
||||
or not isinstance(claim_cores, list)
|
||||
or not claim_cores
|
||||
or not all(isinstance(core, str) for core in claim_cores)
|
||||
):
|
||||
raise ValueError(f"invalid omitted alternative for {dest}")
|
||||
for field in (*SELECTION_FIELDS, "declared_in"):
|
||||
_check_tags(entry, field, dest)
|
||||
_check_omitted_entry(entry, dest)
|
||||
if data.get("slot_fields", True) is not True:
|
||||
raise ValueError("invalid slot_fields")
|
||||
largest_total += _check_truth_lists(data, seen_destinations)
|
||||
if "standalone_builds" in data:
|
||||
_check_tags(data, "standalone_builds", "the file list")
|
||||
if largest_total > MAX_TOTAL_DOWNLOAD_SIZE:
|
||||
raise ValueError("manifest total size exceeds safety limit")
|
||||
declared_total_omitted = data.get("total_omitted")
|
||||
if (
|
||||
declared_total_omitted is not None
|
||||
@@ -4802,6 +4941,35 @@ def local_targets(plat: str) -> "dict | None":
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def fetch_standalone(plat: str, manifest: dict) -> dict:
|
||||
"""What each standalone build reads, for --standalone only: the file
|
||||
beside --manifest (standalone/<platform>.json, where the repository
|
||||
keeps it), else downloaded as the list is. Missing, unreachable or
|
||||
invalid, the run stops on one line, code 1."""
|
||||
beside = (LOCAL.manifest.parent / STANDALONE_DIR / f"{plat}.json"
|
||||
if LOCAL.manifest is not None else None)
|
||||
url = STANDALONE_URL.format(platform=plat)
|
||||
where = str(beside) if beside is not None and _is_file(beside) else url
|
||||
try:
|
||||
if where != url:
|
||||
raw = _read_capped(Path(where), MAX_STANDALONE_BYTES)
|
||||
data = json.loads((raw or b"").decode("utf-8"))
|
||||
else:
|
||||
data = _fetch_json(url, MAX_STANDALONE_BYTES, "standalone layout")
|
||||
return _check_standalone_layouts(data, manifest, plat)
|
||||
except urllib.error.HTTPError as exc:
|
||||
problem = f"HTTP {exc.code}"
|
||||
except (urllib.error.URLError, OSError) as exc:
|
||||
problem = str(exc) if isinstance(exc, _Offline) else network_words(exc)[1]
|
||||
except (UnicodeDecodeError, ValueError) as exc:
|
||||
problem = f"not valid: {exc}"
|
||||
EVENTS.emit("error", stage="manifest", reason="unavailable", platform=plat,
|
||||
message=f"--standalone needs {where}: {problem}")
|
||||
print(f"Error: --standalone needs {where}, which could not be read ({problem}).",
|
||||
file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def fetch_targets(plat: str, attempts: int = MAX_RETRIES,
|
||||
timeout: float | None = None) -> "dict | None":
|
||||
"""The target core list: the one this run has at hand, else downloaded.
|
||||
@@ -5215,6 +5383,190 @@ def _chosen(entry: dict, wanted: set[str]) -> bool:
|
||||
return bool(wanted & set(systems))
|
||||
|
||||
|
||||
def _merged_slot(claims: dict) -> tuple[int | None, tuple, frozenset]:
|
||||
"""One key's rank, regions and sets over the emulators claiming it, as
|
||||
the pack builder merges them (slot.merge_claims). Two ranks that differ,
|
||||
or a rank beside an emulator declaring the file without one, leave the
|
||||
file unranked: neither order may win for a pack serving both cores."""
|
||||
ranks = {rank for claim in claims.values() for rank in claim.get("ranks", [])
|
||||
if rank is not None}
|
||||
ranked_by = {name for name, claim in claims.items()
|
||||
if any(rank is not None for rank in claim.get("ranks", []))}
|
||||
unranked_by = {name for name, claim in claims.items() if None in claim.get("ranks", [])}
|
||||
conflict = len(ranks) > 1 or bool(ranked_by and unranked_by - ranked_by)
|
||||
regions = tuple(sorted({r for claim in claims.values() for r in claim.get("regions", [])}))
|
||||
sets = frozenset((name, group) for name, claim in claims.items()
|
||||
for group in claim.get("sets", []))
|
||||
return (None if conflict or not ranks else min(ranks)), regions, sets
|
||||
|
||||
|
||||
def slot_drops(entries: list[dict], held: set[str],
|
||||
reach: Collection[str] | None = None) -> set[str]:
|
||||
"""Destinations --one-per-slot withdraws, as _entry_key spells them.
|
||||
|
||||
The pack builder's rule (slot.resolve_slot_drops), replayed over the
|
||||
`slot` each entry records. A slot is a group and the regions the code
|
||||
selects the file for, split where no set links its files. In a slot of
|
||||
two files or more, the one ranked first by `priority:` (lower first)
|
||||
stays and the others go, and only when every file of it is ranked and
|
||||
one ranks best: otherwise every file stays. `held` names what the run
|
||||
can install, as for the regions. `reach` is the cores of the board: the
|
||||
claims of the others are no part of its order.
|
||||
"""
|
||||
bucketed: dict[tuple[str, tuple], list[tuple[str, int | None, frozenset]]] = {}
|
||||
keep: set[str] = set()
|
||||
for entry in entries:
|
||||
slot = entry.get("slot")
|
||||
key = _entry_key(entry)
|
||||
if not isinstance(slot, dict) or key not in held:
|
||||
continue
|
||||
# One lookup per name the groups list the file under (`also`).
|
||||
for chain in [slot, *slot.get("also", [])]:
|
||||
merged = None
|
||||
for claims in chain.get("keys", []):
|
||||
here = {name: claim for name, claim in claims.items()
|
||||
if reach is None or name in reach}
|
||||
if here:
|
||||
merged = _merged_slot(here)
|
||||
break
|
||||
if merged is None:
|
||||
keep.add(key)
|
||||
continue
|
||||
rank, regions, sets = merged
|
||||
for group in chain.get("groups", []):
|
||||
bucketed.setdefault((group, regions), []).append((key, rank, sets))
|
||||
drop: set[str] = set()
|
||||
for found in bucketed.values():
|
||||
for candidates in _linked_by_set(found):
|
||||
if len(candidates) < 2 or any(rank is None for _key, rank in candidates):
|
||||
keep.update(key for key, _rank in candidates)
|
||||
continue
|
||||
best = min(rank for _key, rank in candidates if rank is not None)
|
||||
winners = [key for key, rank in candidates if rank == best]
|
||||
if len(winners) != 1:
|
||||
keep.update(key for key, _rank in candidates)
|
||||
continue
|
||||
keep.add(winners[0])
|
||||
drop.update(key for key, _rank in candidates if key != winners[0])
|
||||
return drop - keep
|
||||
|
||||
|
||||
def _linked_by_set(found: list[tuple[str, int | None, frozenset]]
|
||||
) -> list[list[tuple[str, int | None]]]:
|
||||
"""The files of one slot split where no set links them: a rank orders
|
||||
the members of one set, and files in no set are compared together."""
|
||||
parent = list(range(len(found)))
|
||||
|
||||
def root(i: int) -> int:
|
||||
while parent[i] != i:
|
||||
parent[i] = parent[parent[i]]
|
||||
i = parent[i]
|
||||
return i
|
||||
|
||||
first_of: dict[object, int] = {}
|
||||
for i, (_key, _rank, sets) in enumerate(found):
|
||||
for set_key in sets or {None}:
|
||||
if set_key in first_of:
|
||||
parent[root(i)] = root(first_of[set_key])
|
||||
else:
|
||||
first_of[set_key] = i
|
||||
parts: dict[int, list[tuple[str, int | None]]] = {}
|
||||
for i, (key, rank, _sets) in enumerate(found):
|
||||
parts.setdefault(root(i), []).append((key, rank))
|
||||
return list(parts.values())
|
||||
|
||||
|
||||
def one_per_slot(files: list[dict], omitted: list[dict],
|
||||
reach: Collection[str] | None = None) -> tuple[list[dict], list[dict]]:
|
||||
"""The files and omissions --one-per-slot keeps. What the builder holds
|
||||
and this download lacks (held: true) displaces a file as in the pack."""
|
||||
held = {_entry_key(f) for f in files} | {_entry_key(o) for o in omitted if o.get("held")}
|
||||
dropped = slot_drops(files + omitted, held, reach)
|
||||
return ([f for f in files if _entry_key(f) not in dropped],
|
||||
[o for o in omitted if _entry_key(o) not in dropped])
|
||||
|
||||
|
||||
def truth_lists(manifest: dict, files: list[dict],
|
||||
omitted: list[dict]) -> tuple[list[dict], list[dict]]:
|
||||
"""What --source truth installs: the files the emulator profiles prove a
|
||||
core reads, as `generate_pack.py --source truth` packs them. The full
|
||||
list marks what that list lacks (truth: false) and carries what only it
|
||||
holds (truth_files, truth_omitted)."""
|
||||
return ([f for f in files if f.get("truth", True)] + list(manifest.get("truth_files") or []),
|
||||
[o for o in omitted if o.get("truth", True)]
|
||||
+ list(manifest.get("truth_omitted") or []))
|
||||
|
||||
|
||||
def standalone_entries(manifest: dict, layouts: dict, profile: str) -> list[dict] | None:
|
||||
"""The files a profile's standalone build reads, as entries of the list:
|
||||
None for a profile without one. An item [dest, sha1] takes its download
|
||||
from the copy of the list with that content."""
|
||||
if profile not in layouts:
|
||||
return None
|
||||
copies = {
|
||||
copy["sha1"]: copy
|
||||
for entry in [*manifest.get("files", []), *(manifest.get("truth_files") or [])]
|
||||
for copy in [entry, *entry.get("alternatives", []), *entry.get("slot_choices", [])]
|
||||
if copy.get("sha1") and (copy.get("repo_path") or copy.get("release_asset"))
|
||||
}
|
||||
result: list[dict] = []
|
||||
for item in layouts[profile]:
|
||||
if isinstance(item, list):
|
||||
dest, sha1 = item
|
||||
copy = copies[sha1]
|
||||
result.append({"dest": dest, **{k: copy[k] for k in _COPY_FIELDS
|
||||
if k in copy and k != "cores"},
|
||||
"cores": [profile]})
|
||||
else:
|
||||
result.append({**item, "cores": [profile]})
|
||||
return result
|
||||
|
||||
|
||||
def standalone_layout(manifest: dict, layouts: dict, profiles: list[str],
|
||||
files: list[dict], omitted: list[dict]
|
||||
) -> tuple[list[dict], list[dict]]:
|
||||
"""--emulator with --standalone: the platform's own files of the systems
|
||||
the emulators run, and beside them each emulator's standalone build, in
|
||||
profile order, first at a destination wins, as `generate_pack.py
|
||||
--emulator --standalone` packs them."""
|
||||
built: dict[str, dict] = {}
|
||||
for profile in sorted(profiles):
|
||||
for entry in standalone_entries(manifest, layouts, profile) or []:
|
||||
built.setdefault(_entry_key(entry), entry)
|
||||
own = [entry for entry in files
|
||||
if entry.get("cores") is None and _entry_key(entry) not in built]
|
||||
return own + list(built.values()), [o for o in omitted if o.get("cores") is None]
|
||||
|
||||
|
||||
# What --find reads a hash as, by its length in hex digits.
|
||||
FIND_KINDS = {40: "sha1", 64: "sha256", 32: "md5", 8: "crc32"}
|
||||
|
||||
|
||||
def find_by_hash(files: list[dict], value: str) -> tuple[str, list[dict], bool]:
|
||||
"""The entries of a list whose content has this hash: the kind read
|
||||
from its length, the matches, each at its destination with the copy
|
||||
that has it, and whether the list records that kind at all."""
|
||||
value = value.strip().lower()
|
||||
kind = FIND_KINDS.get(len(value), "")
|
||||
matches: list[dict] = []
|
||||
recorded = False
|
||||
seen: set[tuple[str, str]] = set()
|
||||
for entry in files:
|
||||
for copy in [entry, *entry.get("alternatives", []), *entry.get("slot_choices", [])]:
|
||||
if kind in copy:
|
||||
recorded = True
|
||||
if str(copy.get(kind, "")).lower() != value:
|
||||
continue
|
||||
found = dict(entry)
|
||||
for field in ("alternatives", "slot_choices", "declared_choices", "declared_copy"):
|
||||
found.pop(field, None)
|
||||
found.update((k, copy[k]) for k in _COPY_FIELDS if k in copy)
|
||||
if (_entry_key(found), found.get("sha1", "")) not in seen:
|
||||
seen.add((_entry_key(found), found.get("sha1", "")))
|
||||
matches.append(found)
|
||||
return kind, matches, recorded
|
||||
|
||||
|
||||
def recorded_axes(files: list[dict], omitted: list[dict] = ()) -> frozenset:
|
||||
"""What a file list lets --system, --core and --region narrow by: its
|
||||
systems, its cores, its regions. A list from an older release records
|
||||
@@ -8291,8 +8643,10 @@ _CHOICE_OPTIONS = ("--system", "--core", "--region", "--for-games", "--required-
|
||||
# wrote --manifest before --from and line mode after it, for one choice
|
||||
# An option not named here comes after them.
|
||||
_COMMAND_ORDER = (
|
||||
"--manifest", "--from-pack", "--system", "--core", "--emulator", "--region",
|
||||
"--for-games", "--required-only", "--all-files", "--target", "--no-game-data", "--installed-cores", "--cores-dir", "--every-board",
|
||||
"--manifest", "--from-pack", "--system", "--core", "--emulator", "--standalone",
|
||||
"--region", "--one-per-slot", "--source", "--find", "--for-games", "--required-only",
|
||||
"--all-files", "--target", "--no-game-data", "--installed-cores", "--cores-dir",
|
||||
"--every-board",
|
||||
"--declared-only", "--standalone-copies", "--save-dir", "--jobs", "--from",
|
||||
"--add-app", "--offline", "--check", "--dry-run",
|
||||
)
|
||||
@@ -8341,6 +8695,10 @@ class Invocation:
|
||||
games = getattr(args, "for_games", None)
|
||||
if games is not None:
|
||||
options.append(("--for-games", None if games is True else str(games)))
|
||||
if getattr(args, "source", "full") != "full":
|
||||
options.append(("--source", args.source))
|
||||
if getattr(args, "find", None):
|
||||
options.append(("--find", args.find))
|
||||
for flag, on in (
|
||||
("--required-only", getattr(args, "required_only", False)),
|
||||
("--all-files", getattr(args, "all_files", False)),
|
||||
@@ -8348,6 +8706,8 @@ class Invocation:
|
||||
("--installed-cores", args.installed_cores and not args.cores_dir),
|
||||
("--no-game-data", args.no_game_data),
|
||||
("--declared-only", args.declared_only),
|
||||
("--one-per-slot", getattr(args, "one_per_slot", False)),
|
||||
("--standalone", getattr(args, "standalone", False)),
|
||||
("--standalone-copies", args.standalone_copies),
|
||||
("--offline", offline_option(getattr(args, "offline", False))),
|
||||
("--check", args.check),
|
||||
@@ -11858,6 +12218,32 @@ def _narrow_to_emulators(
|
||||
return files, omitted
|
||||
|
||||
|
||||
def _standalone_builds(
|
||||
values: list[str], names: dict[str, str], manifest: dict, plat: str,
|
||||
files: list[dict], omitted: list[dict],
|
||||
) -> tuple[list[dict], list[dict]]:
|
||||
"""--emulator with --standalone: each emulator's standalone build in
|
||||
place of the files its core reads. An emulator with no standalone
|
||||
build is refused, as `generate_pack.py --standalone` refuses it."""
|
||||
if "standalone_builds" not in manifest:
|
||||
print(f"Error: the {plat} file list does not say which emulators have a "
|
||||
"standalone build, which --standalone needs.", file=sys.stderr)
|
||||
print(_older_list_advice(plat), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
profiles = sorted({names[name] for name in resolve_choices(values, sorted(names),
|
||||
"emulator")})
|
||||
lacking = [p for p in profiles if p not in manifest["standalone_builds"]]
|
||||
if lacking:
|
||||
refuse_name(plat, f"Error: {', '.join(lacking)} has no standalone build: run "
|
||||
"again without --standalone.")
|
||||
before = len(files)
|
||||
files, omitted = standalone_layout(manifest, fetch_standalone(plat, manifest), profiles,
|
||||
files, omitted)
|
||||
detail(f" The standalone {'builds' if len(profiles) > 1 else 'build'}: "
|
||||
f"{before} to {len(files)} files")
|
||||
return files, omitted
|
||||
|
||||
|
||||
def _known_names(values: list[str] | None, known: list[str], label: str,
|
||||
aliases: dict[str, str] | None = None) -> list[str]:
|
||||
"""The names of values that resolve against known, the others left out."""
|
||||
@@ -16588,6 +16974,36 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
help="keep only the files the platform's own list names, not the extra "
|
||||
"files cores load: --check then answers for the list the platform checks",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--one-per-slot",
|
||||
action="store_true",
|
||||
help="keep one BIOS per console and region, the one the emulators' own "
|
||||
"search order ranks first (a slot no order decides keeps every file)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--standalone",
|
||||
action="store_true",
|
||||
help="with --emulator: the files each emulator's standalone build reads, "
|
||||
"where that build reads them",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--source",
|
||||
choices=("full", "truth"),
|
||||
default="full",
|
||||
help="truth: only the files the emulator profiles prove a core reads "
|
||||
"(default full: the platform's list and what its cores read)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--find",
|
||||
metavar="HASH",
|
||||
help="install the file of the list with this sha1 or sha256, or md5 or "
|
||||
"crc32 where the list records them",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--json",
|
||||
action="store_true",
|
||||
help="with --find: print the matching files as JSON and install nothing",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--list-systems",
|
||||
action="store_true",
|
||||
@@ -16794,6 +17210,113 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
return parser
|
||||
|
||||
|
||||
def _check_expert(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None:
|
||||
"""--one-per-slot, --standalone, --source truth and --find, applied or
|
||||
refused, never ignored. Each is held equal to the pack builder's own
|
||||
option, so a choice the builder refuses beside it is refused here."""
|
||||
listing = (args.list_platforms or args.list_targets or args.list_systems
|
||||
or args.list_cores or args.list_emulators)
|
||||
truth = args.source == "truth"
|
||||
refusals = (
|
||||
(args.json and not args.find, "--json applies to --find"),
|
||||
(args.standalone and not args.emulator,
|
||||
"--standalone applies to --emulator: it picks that emulator's standalone build"),
|
||||
(args.standalone and (args.region or args.one_per_slot or args.core or args.system),
|
||||
"--standalone installs each emulator's standalone build whole, which "
|
||||
"--region, --one-per-slot, --core and --system do not narrow"),
|
||||
(args.one_per_slot and (args.system or args.emulator or args.for_games is not None),
|
||||
"--one-per-slot decides each slot over the whole list, which --system, "
|
||||
"--emulator and --for-games narrow first"),
|
||||
(args.one_per_slot and args.declared_only,
|
||||
"--one-per-slot ranks the files cores load too, which --declared-only leaves out"),
|
||||
(truth and (args.system or args.core or args.emulator or args.region
|
||||
or args.one_per_slot or args.for_games is not None
|
||||
or args.declared_only or args.target or args.installed_cores
|
||||
or args.no_game_data),
|
||||
"--source truth installs what the emulator profiles prove is read, over "
|
||||
"the whole list: run it without other choices"),
|
||||
(truth and args.tui, "the full-screen interface has no choice for --source truth"),
|
||||
(bool(args.find) and (args.system or args.core or args.emulator or args.region
|
||||
or args.one_per_slot or truth or args.for_games is not None
|
||||
or args.declared_only or args.no_game_data or args.target
|
||||
or args.installed_cores or args.all_files or args.standalone),
|
||||
"--find picks one file by its hash: run it without other choices"),
|
||||
(bool(args.find) and (listing or args.check or args.tui),
|
||||
"--find installs or names one file, not a listing, a check or the full screen"),
|
||||
(args.json and args.events, "--json and --events each write JSON on stdout"),
|
||||
(listing and (args.one_per_slot or args.standalone or truth),
|
||||
"a listing prints the whole list, which --one-per-slot, --standalone and "
|
||||
"--source do not narrow"),
|
||||
)
|
||||
for given, reason in refusals:
|
||||
if given:
|
||||
parser.error(reason)
|
||||
if args.find:
|
||||
# Each would be skipped by a run that installs one file or prints it.
|
||||
for flag, given in (("--pack", getattr(args, "pack", None) is not None),
|
||||
("--add-app", args.add_app),
|
||||
("--standalone-copies", args.standalone_copies),
|
||||
("--romm-firmware", args.romm_firmware is not None),
|
||||
("--from", bool(getattr(args, "from")))):
|
||||
if given:
|
||||
parser.error(f"--find picks one file by its hash, which {flag} does not apply to")
|
||||
if args.find is not None:
|
||||
value = args.find.strip()
|
||||
if len(value) not in FIND_KINDS or not re.fullmatch(r"[0-9a-fA-F]+", value):
|
||||
kinds = ", ".join(f"{kind} ({length} digits)" for length, kind in FIND_KINDS.items())
|
||||
parser.error(f"--find takes a hash in hexadecimal: {kinds}")
|
||||
|
||||
|
||||
FIND_SCHEMA = 1
|
||||
# What a match of --find --json carries, every key in this order, null
|
||||
# where the list records none.
|
||||
FIND_FIELDS = ("dest", "root", "sha1", "sha256", "md5", "crc32", "size", "systems", "cores")
|
||||
|
||||
|
||||
def _found_files(args: argparse.Namespace, plat: str,
|
||||
files: list[dict]) -> tuple[list[dict], list[dict]]:
|
||||
"""--find: the file of the list with the hash given, the run narrowed to
|
||||
it, or with --json the matches printed and nothing installed.
|
||||
|
||||
One content found at several destinations installs at each. A hash two
|
||||
contents share (a crc32) is ambiguous: named, never chosen. A kind the
|
||||
list does not record (md5, crc32) is said as such, never as unknown.
|
||||
"""
|
||||
value = args.find.strip().lower()
|
||||
kind, matches, recorded = find_by_hash(files, value)
|
||||
contents = {match.get("sha1") or match.get("sha256") for match in matches}
|
||||
result = ("found" if len(contents) == 1 else "ambiguous" if contents
|
||||
else "unknown" if recorded else "unrecorded")
|
||||
if args.json:
|
||||
record = {"schema": FIND_SCHEMA, "platform": plat, "hash": value, "kind": kind,
|
||||
"result": result,
|
||||
"matches": [{field: match.get(field) for field in FIND_FIELDS}
|
||||
for match in matches]}
|
||||
print(json.dumps(record), file=args.json_out, flush=True)
|
||||
if result != "found":
|
||||
args.find_failed = True
|
||||
return [], []
|
||||
lines = {
|
||||
"unrecorded": [f"Error: the {plat} file list records no {kind}: --find reads "
|
||||
"sha1 and sha256 in every list."],
|
||||
"unknown": [f"Error: no file of the {plat} list has the {kind} {value}."],
|
||||
"ambiguous": [f"Error: {len(contents)} files of the {plat} list have the "
|
||||
f"{kind} {value}: give their sha1 instead.",
|
||||
*(f" {match['dest']} {match.get('sha1', '')}" for match in matches)],
|
||||
}.get(result)
|
||||
if lines is not None:
|
||||
EVENTS.emit("error", stage="option", reason="unknown", platform=plat,
|
||||
message=lines[0][len("Error: "):])
|
||||
for line in lines:
|
||||
print(line, file=sys.stderr)
|
||||
# 4: the hash was read and the list holds no one file for it, neither
|
||||
# a failure (1) nor an option refused (2).
|
||||
sys.exit(4)
|
||||
for match in matches:
|
||||
print(f" {value} is {match['dest']}")
|
||||
return matches, []
|
||||
|
||||
|
||||
def say_raw_errors(verbose: bool) -> None:
|
||||
"""Each run says errors from its own options: a run with --verbose before
|
||||
it in the same process left every later message with its raw cause."""
|
||||
@@ -16891,6 +17414,7 @@ def main() -> None:
|
||||
):
|
||||
if given:
|
||||
parser.error(reason)
|
||||
_check_expert(parser, args)
|
||||
if args.tui:
|
||||
reason = tui_blocker(args)
|
||||
if reason:
|
||||
@@ -16957,10 +17481,12 @@ def main() -> None:
|
||||
"or --list-targets")
|
||||
# The screens have no choice for --declared-only: the questions ask the
|
||||
# rest, and the run keeps the platform's own list.
|
||||
# Nor for --source truth and --find, which choose the files themselves.
|
||||
lined = args.declared_only or args.source == "truth" or bool(args.find)
|
||||
blocker = "" if args.tui else tui_blocker(args)
|
||||
if args.tui or not (plain_requested(args) or args.declared_only or blocker):
|
||||
if args.tui or not (plain_requested(args) or lined or blocker):
|
||||
sys.exit(run_tui(args))
|
||||
if not (plain_requested(args) or args.declared_only):
|
||||
if not (plain_requested(args) or lined):
|
||||
# The questions came line by line with no word of why: the page
|
||||
# says a smaller window says so, and a TERM
|
||||
# unset or dumb said nothing.
|
||||
@@ -16985,6 +17511,16 @@ def main() -> None:
|
||||
raise
|
||||
EVENTS.emit("end", code=0)
|
||||
return
|
||||
if args.json:
|
||||
# The matches own stdout, the text a person reads goes to stderr.
|
||||
args.no_input = True
|
||||
args.json_out = sys.stdout
|
||||
sys.stdout = sys.stderr
|
||||
try:
|
||||
_run(args)
|
||||
finally:
|
||||
sys.stdout = args.json_out
|
||||
return
|
||||
_run(args)
|
||||
|
||||
|
||||
@@ -18439,6 +18975,12 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
# A namespace built by a caller that predates --for-games has neither.
|
||||
args.for_games = getattr(args, "for_games", None)
|
||||
args.required_only = getattr(args, "required_only", False)
|
||||
for name, default in (("one_per_slot", False), ("standalone", False), ("source", "full"),
|
||||
("find", None), ("json", False)):
|
||||
setattr(args, name, getattr(args, name, default))
|
||||
# Options that choose the files themselves: no question chooses again,
|
||||
# and no board or game of the card narrows what they chose.
|
||||
chosen_by_flag = bool(args.find) or args.source == "truth"
|
||||
term = Terminal(real_stdout, quiet=args.quiet)
|
||||
interactive = sys.stdin.isatty() and not args.no_input and not args.quiet
|
||||
listing = (args.list_targets or args.list_systems or args.list_cores
|
||||
@@ -18875,6 +19417,16 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
categorized = categorized or bool(manifest.get("categorized"))
|
||||
files = manifest.get("files", [])
|
||||
omitted_files = manifest.get("omitted_files", [])
|
||||
if args.source == "truth":
|
||||
if manifest.get("truth_files") is None:
|
||||
print(f"Error: the {plat_name} file list does not say what the emulator "
|
||||
"profiles prove is read, which --source truth needs.", file=sys.stderr)
|
||||
print(_older_list_advice(plat_name), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
before = len(files)
|
||||
files, omitted_files = truth_lists(manifest, files, omitted_files)
|
||||
detail(f" What the emulator profiles prove is read: {before} to "
|
||||
f"{len(files)} files (--source truth)")
|
||||
variants = manifest.get("case_variants", [])
|
||||
case_kept = keeps_case(bios_path)
|
||||
if variants and case_kept:
|
||||
@@ -18908,6 +19460,11 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
f"{FAT_REFUSED_SHOWN} ({screen_text(shown)})"
|
||||
)
|
||||
|
||||
if args.find:
|
||||
# Among the case variants kept here too: bios.col is one file.
|
||||
files, omitted_files = _found_files(args, plat_name, files)
|
||||
if args.json:
|
||||
continue
|
||||
game_data_cut = 0
|
||||
if args.no_game_data and not manifest.get("categorized") and by_record(args):
|
||||
drop_recorded(args, plat_name, "--no-game-data", "the list marks no game data")
|
||||
@@ -18944,7 +19501,9 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
# a card prepared on a computer took every board's files, and the
|
||||
# full-screen interface, which always gives --dest, never applied one.
|
||||
target = args.target
|
||||
if (not target and not args.every_board and not packing
|
||||
# The cores whose order decides a slot: the board's, else every core.
|
||||
slot_reach: set[str] | None = None
|
||||
if (not target and not args.every_board and not packing and not chosen_by_flag
|
||||
and (not LOCAL.offline or local_targets(plat_name) is not None)):
|
||||
board = detect_board(plat_name)
|
||||
where = "detected"
|
||||
@@ -18987,6 +19546,7 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
manifest, target_info["cores"], files, omitted_files,
|
||||
target=target,
|
||||
)
|
||||
slot_reach = designated_cores(manifest, target_info["cores"], target)
|
||||
detail(f" Filtered {before} to {len(files)} files for target {target}")
|
||||
|
||||
found_cores = cores_found.get((plat_name, bios_path), [])
|
||||
@@ -19015,6 +19575,9 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
manifest, found_cores, files, omitted_files, info_dests
|
||||
)
|
||||
detail(f" Narrowed {before} to {len(files)} files to the installed cores")
|
||||
# A slot is ranked by the cores installed, as a pack built for them.
|
||||
found_reach = designated_cores(manifest, found_cores)
|
||||
slot_reach = found_reach if slot_reach is None else slot_reach & found_reach
|
||||
|
||||
if args.list_emulators:
|
||||
_print_emulators(plat_name, manifest, *(
|
||||
@@ -19025,9 +19588,13 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
if args.emulator and by_record(args):
|
||||
_recorded_emulators(args, plat_name, manifest, files, omitted_files)
|
||||
if args.emulator:
|
||||
names = emulator_names(manifest, files, omitted_files)
|
||||
files, omitted_files = _narrow_to_emulators(
|
||||
args.emulator, manifest, plat_name, files, omitted_files
|
||||
)
|
||||
if args.standalone:
|
||||
files, omitted_files = _standalone_builds(
|
||||
args.emulator, names, manifest, plat_name, files, omitted_files)
|
||||
|
||||
# Said before the install and again with the result.
|
||||
note = None if listing or packing else version_note(plat_name, bios_path, manifest)
|
||||
@@ -19059,7 +19626,8 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
# The games of the card, read before the choices: where it holds
|
||||
# some, what they need is the menu's first choice, and --for-games
|
||||
# narrows the list here, before the systems are counted.
|
||||
will_ask = interactive and not args.check and not listing
|
||||
will_ask = (interactive and not args.check and not listing and not chosen_by_flag
|
||||
and not args.one_per_slot)
|
||||
# A run that asks nothing takes the plan's first choice: the games of
|
||||
# the card. `--yes` alone installed 6.4 GB on a dArkOS card holding
|
||||
# two games, while the screen offers what they need first. Not for a
|
||||
@@ -19069,7 +19637,8 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
and not getattr(args, "all_files", False)
|
||||
and LOCAL.manifest is None and LOCAL.pack is None
|
||||
and not (args.installed_cores or args.no_game_data or args.system
|
||||
or args.core or args.region or args.emulator or args.declared_only))
|
||||
or args.core or args.region or args.emulator or args.declared_only
|
||||
or args.one_per_slot or chosen_by_flag))
|
||||
games_plan = None
|
||||
if args.for_games is not None or unasked or (will_ask and not (
|
||||
args.installed_cores or args.no_game_data or LOCAL.pack is not None)):
|
||||
@@ -19115,7 +19684,7 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
given = GamesChoice(games_plan, args.required_only)
|
||||
# g at the menu: whether it left the game data out.
|
||||
cut: list[bool] | None = None
|
||||
menu = interactive and not args.check and not listing
|
||||
menu = will_ask
|
||||
if menu:
|
||||
whole_installed = (
|
||||
narrow_to_cores(manifest, found_cores, files, omitted_files)
|
||||
@@ -19206,6 +19775,15 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
# Enter for every system narrows nothing: "Narrowed 23 to 23".
|
||||
# The menu counted the choice again before Enter.
|
||||
detail(f" Narrowed {before} to {len(files)} files")
|
||||
if args.one_per_slot:
|
||||
if not manifest.get("slot_fields"):
|
||||
print(f"Error: the {plat_name} file list does not say which files a "
|
||||
"slot holds, which --one-per-slot needs.", file=sys.stderr)
|
||||
print(_older_list_advice(plat_name), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
before = len(files)
|
||||
files, omitted_files = one_per_slot(files, omitted_files, slot_reach)
|
||||
detail(f" One BIOS per console and region: {before} to {len(files)} files")
|
||||
if (cut and cut[0]) or args.no_game_data:
|
||||
# Left out at g or by --no-game-data, from what the choice kept:
|
||||
# g offered the game data of the systems chosen, and the line
|
||||
@@ -19237,14 +19815,15 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
# must count the same trees.
|
||||
narrowed = bool(
|
||||
target or args.system or args.core or args.region or args.installed_cores
|
||||
or args.one_per_slot or args.standalone or chosen_by_flag
|
||||
or args.declared_only or len(files) + game_data_cut + len(unplaced)
|
||||
!= len(manifest.get("files", [])) + len(variants if case_kept else [])
|
||||
or games_applied
|
||||
)
|
||||
data_dirs = select_data_directories(manifest, files, narrowed,
|
||||
bool(args.required_only),
|
||||
games_plan if games_applied else None,
|
||||
chosen_systems(selection))
|
||||
# --find installs the file found, no tree beside it.
|
||||
data_dirs = [] if args.find else select_data_directories(
|
||||
manifest, files, narrowed, bool(args.required_only),
|
||||
games_plan if games_applied else None, chosen_systems(selection))
|
||||
# The kinds as the plan and the menu head say them (parts_words),
|
||||
# the data files of the folders kept among them: this head said
|
||||
# BIOS files and game data beside a plan of three kinds, neither
|
||||
@@ -19779,6 +20358,9 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
"they read into them.")
|
||||
|
||||
sys.stdout = real_stdout
|
||||
if args.find and getattr(args, "json", False):
|
||||
# The matches are the answer: nothing was installed.
|
||||
sys.exit(4 if getattr(args, "find_failed", False) else 0)
|
||||
if not listing:
|
||||
EVENTS.emit(
|
||||
"summary", mode=_event_mode(args), installed=total_downloaded,
|
||||
@@ -20743,6 +21325,9 @@ class TuiState:
|
||||
self.cli_regions: list = []
|
||||
self.cores: list = []
|
||||
self.no_game_data: bool = False
|
||||
# --one-per-slot and --standalone, set on Change or given.
|
||||
self.one_per_slot: bool = False
|
||||
self.standalone: bool = False
|
||||
# --no-game-data on the command line: the plan has no game data row,
|
||||
# as line mode has no g then.
|
||||
self.cli_no_game_data: bool = False
|
||||
@@ -21302,6 +21887,10 @@ def tui_flags(state: TuiState) -> list[tuple[str, str | None]]:
|
||||
flags.append(("--required-only", None))
|
||||
if state.no_game_data:
|
||||
flags.append(("--no-game-data", None))
|
||||
if state.standalone and _tui_standalone_offered(state):
|
||||
flags.append(("--standalone", None))
|
||||
if state.one_per_slot and _tui_slot_offered(state, flags):
|
||||
flags.append(("--one-per-slot", None))
|
||||
if state.installed_only and not any(flag == "--cores-dir" for flag, _v in flags):
|
||||
flags.append(("--installed-cores", None))
|
||||
if state.jobs != 8:
|
||||
@@ -22200,6 +22789,9 @@ def _option_rows(state: TuiState) -> list[TuiRow]:
|
||||
what.append(TuiRow("regions", "Preferred regions: "
|
||||
+ (", ".join(map(region_title, state.regions)) or "any"),
|
||||
"--region"))
|
||||
if _tui_slot_offered(state, tui_flags(state)):
|
||||
what.append(TuiRow("slot", "One BIOS per console and region: "
|
||||
+ _yes(state.one_per_slot), "--one-per-slot"))
|
||||
if len(choices["cores"]) > 1:
|
||||
# The plan's words, the noun left to the row's own label. A list
|
||||
# with one core asks nothing, as line mode does not.
|
||||
@@ -22208,6 +22800,9 @@ def _option_rows(state: TuiState) -> list[TuiRow]:
|
||||
if "system_cores" in manifest and tui_emulators(state):
|
||||
what.append(TuiRow("emulators", f"Emulators: {_emulator_words(state)}",
|
||||
"--emulator"))
|
||||
if _tui_standalone_offered(state):
|
||||
what.append(TuiRow("standalone", "Standalone version of it: "
|
||||
+ _yes(state.standalone), "--standalone"))
|
||||
if manifest.get("categorized"):
|
||||
# "Leave out game data: no" was a double negative.
|
||||
what.append(TuiRow("game_data", "Game data: "
|
||||
@@ -22260,6 +22855,32 @@ def _option_rows(state: TuiState) -> list[TuiRow]:
|
||||
return rows
|
||||
|
||||
|
||||
def _tui_standalone_offered(state: TuiState) -> bool:
|
||||
"""Whether Change offers --standalone: emulators are chosen, the list
|
||||
records a standalone build for each of them, and no region, core or
|
||||
system choice narrows the run, which the option refuses beside it."""
|
||||
manifest = state.manifest or {}
|
||||
layouts = manifest.get("standalone_builds") or []
|
||||
if not state.emulators or not layouts or not _tui_standalone_fits(state):
|
||||
return False
|
||||
names = emulator_names(manifest, *tui_run_files(state))
|
||||
return all(names.get(name) in layouts for name in state.emulators)
|
||||
|
||||
|
||||
def _tui_standalone_fits(state: TuiState) -> bool:
|
||||
"""No region, core or system choice: --standalone takes none."""
|
||||
return not (state.regions or tui_core_flags(state) or _tui_system_flags(state))
|
||||
|
||||
|
||||
def _tui_slot_offered(state: TuiState, flags: list[tuple[str, str | None]]) -> bool:
|
||||
"""Whether Change offers --one-per-slot: the list records its slots and
|
||||
the choice is the whole list, as the pack builder decides slots over it
|
||||
(no system, emulator or game choice narrows it first)."""
|
||||
return bool((state.manifest or {}).get("slot_fields")) and not any(
|
||||
flag in ("--system", "--emulator", "--for-games", "--declared-only")
|
||||
for flag, _value in flags)
|
||||
|
||||
|
||||
def tui_emulators(state: TuiState) -> list[str]:
|
||||
"""The emulators Emulators lists: each profile once, by the name the
|
||||
list gives it, as --list-emulators names them."""
|
||||
@@ -23868,6 +24489,10 @@ def _option(state: TuiState, action: str, step: int) -> list[tuple]:
|
||||
"""A row of the options: step 0 is Enter, -1 and 1 are Left and Right."""
|
||||
if action == "game_data":
|
||||
state.no_game_data = step > 0 if step else not state.no_game_data
|
||||
elif action == "slot":
|
||||
state.one_per_slot = step > 0 if step else not state.one_per_slot
|
||||
elif action == "standalone":
|
||||
state.standalone = step > 0 if step else not state.standalone
|
||||
elif action == "installed" and not _cores_dir_given(state):
|
||||
state.installed_only = step > 0 if step else not state.installed_only
|
||||
elif action == "jobs":
|
||||
@@ -24209,7 +24834,22 @@ def _pager_last(state: TuiState, items: list) -> int:
|
||||
|
||||
|
||||
def tui_update(state: TuiState, key: TuiKey) -> list[tuple]:
|
||||
"""What a key does on the current screen, and the work it starts."""
|
||||
"""What a key does on the current screen, and the work it starts. A
|
||||
choice that --standalone cannot sit beside turns it off, said once."""
|
||||
effects = _tui_key(state, key)
|
||||
if state.standalone and state.emulators and not _tui_standalone_fits(state):
|
||||
state.standalone = False
|
||||
state.status = TUI_STANDALONE_OFF
|
||||
return effects
|
||||
|
||||
|
||||
# Said when a choice of regions, cores or systems turns Standalone off.
|
||||
TUI_STANDALONE_OFF = ("Standalone version off: the build is installed whole, which "
|
||||
"regions, cores and systems do not narrow.")
|
||||
|
||||
|
||||
def _tui_key(state: TuiState, key: TuiKey) -> list[tuple]:
|
||||
"""tui_update for one key."""
|
||||
if key.name == "mouse":
|
||||
return tui_mouse(state, key) # type: ignore[arg-type]
|
||||
# A key moves the focus its own way: the next tap focuses again.
|
||||
@@ -24989,6 +25629,7 @@ _ROW_VERBS = {
|
||||
"none": "Untick all", "filter": "Filter", "system": "Tick", "core": "Tick",
|
||||
"region": "Tick", "done": "Done", "regions": "Open", "cores": "Open", "command": "Open",
|
||||
"preview": "Open", "folder": "Choose", "game_data": "Change", "installed": "Change",
|
||||
"slot": "Change", "standalone": "Change",
|
||||
"jobs": "Change", "retry": "Try again", "back": "Back", "stay": "Stay",
|
||||
"fromcard": "Choose", "from": "Add a folder", "misplaced": "Show", "zip": "Copy from it",
|
||||
"unreadable": "Show", "exit": "Exit", "addapp": "Put it on the card",
|
||||
@@ -27981,6 +28622,8 @@ def tui_start(
|
||||
if token.strip()))
|
||||
state.cli_cores = list(state.cores)
|
||||
state.no_game_data = state.cli_no_game_data = bool(args.no_game_data)
|
||||
state.one_per_slot = bool(getattr(args, "one_per_slot", False))
|
||||
state.standalone = bool(getattr(args, "standalone", False))
|
||||
state.installed_only = bool(args.installed_cores)
|
||||
state.jobs = args.jobs
|
||||
state.add_app = bool(getattr(args, "add_app", False))
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ DEFAULT_INSTALL_URL="https://raw.githubusercontent.com/Abdess/retrobios/main/ins
|
||||
# curl or wget stop on a cut transfer before the hash is read: the site's
|
||||
# build rewrites this line there (scripts/sitebootstrap.py).
|
||||
MISMATCH_ADVICE="The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
||||
DEFAULT_INSTALL_SHA256="1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9"
|
||||
DEFAULT_INSTALL_SHA256="4b8e2e8e5343dbf75f6c9b089993cce3b7f64ad1e7a5a6c91993a07ec9674bc6"
|
||||
# The pin above refuses any changed byte: this cap only stops a body that
|
||||
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
||||
MAX_INSTALLER_BYTES=8388608
|
||||
|
||||
+3667
-114
File diff suppressed because it is too large.
Load diff
+4948
-150
File diff suppressed because it is too large.
Load diff
+240
-119
File diff suppressed because it is too large.
Load diff
+4061
-39
File diff suppressed because it is too large.
Load diff
+3774
-251
File diff suppressed because it is too large.
Load diff
+1462
-130
File diff suppressed because it is too large.
Load diff
+5519
-174
File diff suppressed because it is too large.
Load diff
@@ -27,8 +27,8 @@
|
||||
{
|
||||
"dest": "roms/ports/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1351941,
|
||||
"sha256": "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9",
|
||||
"size": 1384488,
|
||||
"sha256": "4b8e2e8e5343dbf75f6c9b089993cce3b7f64ad1e7a5a6c91993a07ec9674bc6",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -71,8 +71,8 @@
|
||||
"muos": {
|
||||
"archive": {
|
||||
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
||||
"size": 1405566,
|
||||
"sha256": "4734e22bfc6428bb05cf5abcebcaa52aaf55e4c3b36ed291c016ad2ec118fffe"
|
||||
"size": 1438113,
|
||||
"sha256": "388342648dc84cadfae52e4c550349a30016bbd9a880d946749e96fc593dd9fb"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
@@ -92,8 +92,8 @@
|
||||
{
|
||||
"name": "RetroBIOS/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1351941,
|
||||
"sha256": "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9",
|
||||
"size": 1384488,
|
||||
"sha256": "4b8e2e8e5343dbf75f6c9b089993cce3b7f64ad1e7a5a6c91993a07ec9674bc6",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -166,8 +166,8 @@
|
||||
{
|
||||
"dest": ".config/modules/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1351941,
|
||||
"sha256": "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9",
|
||||
"size": 1384488,
|
||||
"sha256": "4b8e2e8e5343dbf75f6c9b089993cce3b7f64ad1e7a5a6c91993a07ec9674bc6",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
|
||||
+748
-1
@@ -3,6 +3,7 @@
|
||||
"source": "full",
|
||||
"regions": [],
|
||||
"categorized": true,
|
||||
"slot_fields": true,
|
||||
"platform": "minui",
|
||||
"display_name": "MinUI",
|
||||
"version": "2025-11-27",
|
||||
@@ -424,6 +425,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -442,6 +464,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -460,6 +503,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -478,6 +542,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -496,6 +581,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -514,6 +620,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -532,6 +659,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -550,6 +698,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -568,6 +737,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -585,6 +774,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -602,6 +811,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -619,6 +848,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -676,6 +925,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -694,6 +964,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -712,6 +1003,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -730,6 +1042,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -748,6 +1081,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -766,6 +1120,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -784,6 +1159,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -802,6 +1198,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -820,6 +1237,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -837,6 +1274,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -854,6 +1311,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -871,6 +1348,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -928,6 +1425,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -946,6 +1464,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -964,6 +1503,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -982,6 +1542,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -1000,6 +1581,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1018,6 +1620,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1036,6 +1659,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1054,6 +1698,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1072,6 +1737,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -1089,6 +1774,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -1106,6 +1811,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -1123,6 +1848,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -1171,5 +1916,7 @@
|
||||
"pokemini"
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"truth_files": [],
|
||||
"truth_omitted": []
|
||||
}
|
||||
+180
-89
@@ -3,6 +3,7 @@
|
||||
"source": "full",
|
||||
"regions": [],
|
||||
"categorized": true,
|
||||
"slot_fields": true,
|
||||
"platform": "misterfpga",
|
||||
"display_name": "MiSTer FPGA",
|
||||
"version": "2026-11-04",
|
||||
@@ -146,7 +147,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"3do"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "3DO/kanji.rom",
|
||||
@@ -157,7 +159,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"3do"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Apple-IIgs/boot.rom",
|
||||
@@ -168,7 +171,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"apple-iigs"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Apple-IIgs/boot1.rom",
|
||||
@@ -179,7 +183,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"apple-iigs"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Jaguar/boot.rom",
|
||||
@@ -190,7 +195,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"atari-jaguar"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Jaguar/boot1.rom",
|
||||
@@ -201,7 +207,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"atari-jaguar"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Jaguar/boot2.rom",
|
||||
@@ -212,7 +219,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"atari-jaguar"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "AtariLynx/boot.rom",
|
||||
@@ -223,7 +231,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"atari-lynx"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Astrocade/boot.rom",
|
||||
@@ -234,7 +243,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"bally-astrocade"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Casio_PV-2000/boot0.rom",
|
||||
@@ -245,7 +255,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"casio-pv2000"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "COCO3/boot0.rom",
|
||||
@@ -256,7 +267,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"coco3"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "COCO3/boot1.rom",
|
||||
@@ -267,7 +279,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"coco3"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "COCO3/boot2.rom",
|
||||
@@ -278,7 +291,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"coco3"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "CreatiVision/boot.rom",
|
||||
@@ -289,7 +303,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"creativision"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SCV/boot.rom",
|
||||
@@ -300,7 +315,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"epoch-scv"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "FM-7/boot.rom",
|
||||
@@ -311,7 +327,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"fm-7"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "FM-7/boot1.rom",
|
||||
@@ -322,7 +339,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"fm-7"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Gamate/boot.rom",
|
||||
@@ -333,7 +351,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"gamate"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "GameKing/boot.rom",
|
||||
@@ -344,7 +363,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"gameking"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Interact/boot.rom",
|
||||
@@ -355,7 +375,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"interact"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Loopy/boot0.rom",
|
||||
@@ -366,7 +387,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"loopy"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Loopy/boot1.rom",
|
||||
@@ -377,7 +399,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"loopy"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Marty/mrom.m36",
|
||||
@@ -388,7 +411,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"marty"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Marty/mrom.m37",
|
||||
@@ -399,7 +423,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"marty"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Intellivision/boot0.rom",
|
||||
@@ -410,7 +435,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"mattel-intellivision"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Intellivision/boot1.rom",
|
||||
@@ -421,7 +447,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"mattel-intellivision"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Intellivision/boot2.rom",
|
||||
@@ -432,7 +459,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"mattel-intellivision"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Intellivision/boot3.rom",
|
||||
@@ -443,7 +471,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"mattel-intellivision"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "MSX1/boot.rom",
|
||||
@@ -454,7 +483,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"microsoft-msx"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PC8801/boot.rom",
|
||||
@@ -465,7 +495,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nec-pc-88"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "TGFX16-CD/cd_bios.rom",
|
||||
@@ -476,7 +507,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nec-pc-engine-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NGPC/boot0.rom",
|
||||
@@ -487,7 +519,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"ngpc"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NGPC/boot1.rom",
|
||||
@@ -498,7 +531,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"ngpc"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "N64/boot.rom",
|
||||
@@ -509,7 +543,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-64"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "N64/boot1.rom",
|
||||
@@ -520,7 +555,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-64"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "N64/boot3.rom",
|
||||
@@ -531,7 +567,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-64"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "N64/boot4.rom",
|
||||
@@ -542,7 +579,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-64"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "N64/boot5.rom",
|
||||
@@ -553,7 +591,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-64"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "GAMEBOY/boot1.rom",
|
||||
@@ -564,7 +603,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-gb"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "GBA/boot.rom",
|
||||
@@ -575,7 +615,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-gba"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NES/boot0.rom",
|
||||
@@ -586,7 +627,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-nes"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PokemonMini/boot.rom",
|
||||
@@ -597,7 +639,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-pokemon-mini"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SGB/Super Game Boy 2.sfc",
|
||||
@@ -608,7 +651,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-sgb"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SGB/Super Game Boy.sfc",
|
||||
@@ -619,7 +663,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-sgb"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SNES/bsx_bios.rom",
|
||||
@@ -630,7 +675,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"nintendo-snes"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "CD-i/boot0.rom",
|
||||
@@ -641,7 +687,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"philips-cdi"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "CD-i/boot1.rom",
|
||||
@@ -652,7 +699,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"philips-cdi"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "CD-i/boot2.rom",
|
||||
@@ -663,7 +711,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"philips-cdi"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PocketChallengeV2/boot.rom",
|
||||
@@ -674,7 +723,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"pocket-challenge-v2"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PocketChallengeV2/boot1.rom",
|
||||
@@ -685,7 +735,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"pocket-challenge-v2"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "MegaCD/Europe/cd_bios.rom",
|
||||
@@ -696,7 +747,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sega-mega-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "MegaCD/Japan/cd_bios.rom",
|
||||
@@ -707,7 +759,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sega-mega-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "MegaCD/USA/cd_bios.rom",
|
||||
@@ -718,7 +771,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sega-mega-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "MegaCD/boot.rom",
|
||||
@@ -729,7 +783,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sega-mega-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Saturn/boot.rom",
|
||||
@@ -740,7 +795,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sega-saturn"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SharpX1/boot.rom",
|
||||
@@ -751,7 +807,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sharp-x1"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SharpX1/boot1.rom",
|
||||
@@ -762,7 +819,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sharp-x1"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SharpX1/boot2.rom",
|
||||
@@ -773,7 +831,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sharp-x1"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SharpX1/boot3.rom",
|
||||
@@ -784,7 +843,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sharp-x1"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NEOGEO/000-lo.lo",
|
||||
@@ -795,7 +855,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NEOGEO/neo-epo.sp1",
|
||||
@@ -806,7 +867,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NEOGEO/sfix.sfix",
|
||||
@@ -817,7 +879,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NEOGEO/sp-s2.sp1",
|
||||
@@ -828,7 +891,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NEOGEO/uni-bios.rom",
|
||||
@@ -839,7 +903,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NeoGeo-CD/neocd.bin",
|
||||
@@ -850,7 +915,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NeoGeo-CD/top-sp1.bin",
|
||||
@@ -861,7 +927,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "NeoGeo-CD/uni-bioscd.rom",
|
||||
@@ -872,7 +939,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"snk-neogeo-cd"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PSX/boot.rom",
|
||||
@@ -883,7 +951,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sony-playstation"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PSX/boot1.rom",
|
||||
@@ -894,7 +963,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sony-playstation"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PSX/boot2.rom",
|
||||
@@ -905,7 +975,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sony-playstation"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "PSX/sbi.zip",
|
||||
@@ -916,7 +987,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"sony-playstation"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Studio-II/boot0.rom",
|
||||
@@ -927,7 +999,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"studio-ii"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Studio-II/boot1.rom",
|
||||
@@ -938,7 +1011,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"studio-ii"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Studio-II/boot2.rom",
|
||||
@@ -949,7 +1023,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"studio-ii"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Studio-II/boot3.rom",
|
||||
@@ -960,7 +1035,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"studio-ii"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Studio-II/chip8.bin",
|
||||
@@ -971,7 +1047,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"studio-ii"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "Studio-II/openstudio2.bin",
|
||||
@@ -982,7 +1059,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"studio-ii"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SuperAcan/boot0.rom",
|
||||
@@ -993,7 +1071,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"superacan"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SuperAcan/boot1.rom",
|
||||
@@ -1004,7 +1083,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"superacan"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "SuperAcan/boot2.rom",
|
||||
@@ -1015,7 +1095,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"superacan"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "TI-99_4A/boot0.rom",
|
||||
@@ -1026,7 +1107,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"ti99"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "GameCom/boot.rom",
|
||||
@@ -1037,7 +1119,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"tiger-game-com"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "VideoBrain/boot0.rom",
|
||||
@@ -1048,7 +1131,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"videobrain"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "VideoBrain/boot1.rom",
|
||||
@@ -1059,7 +1143,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"videobrain"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "WonderSwan/boot.rom",
|
||||
@@ -1070,7 +1155,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"wonderswan"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "WonderSwan/boot1.rom",
|
||||
@@ -1081,7 +1167,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"wonderswan"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "WonderSwanColor/boot.rom",
|
||||
@@ -1092,7 +1179,8 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"wonderswan-color"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
},
|
||||
{
|
||||
"dest": "WonderSwanColor/boot1.rom",
|
||||
@@ -1103,7 +1191,10 @@
|
||||
"cores": null,
|
||||
"systems": [
|
||||
"wonderswan-color"
|
||||
]
|
||||
],
|
||||
"truth": false
|
||||
}
|
||||
]
|
||||
],
|
||||
"truth_files": [],
|
||||
"truth_omitted": []
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
"source": "full",
|
||||
"regions": [],
|
||||
"categorized": true,
|
||||
"slot_fields": true,
|
||||
"platform": "myminui",
|
||||
"display_name": "MyMinUI",
|
||||
"version": "2026-08-09",
|
||||
@@ -1786,6 +1787,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -1804,6 +1826,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -1822,6 +1865,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -1840,6 +1904,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -1858,6 +1943,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1876,6 +1982,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1894,6 +2021,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1912,6 +2060,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -1930,6 +2099,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -1947,6 +2136,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -1964,6 +2173,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -1981,6 +2210,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2038,6 +2287,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2056,6 +2326,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2074,6 +2365,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2092,6 +2404,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2110,6 +2443,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2128,6 +2482,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2146,6 +2521,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2164,6 +2560,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2182,6 +2599,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2199,6 +2636,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2216,6 +2673,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2233,6 +2710,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2290,6 +2787,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2308,6 +2826,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2326,6 +2865,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2344,6 +2904,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-us"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"latin-america",
|
||||
"north-america"
|
||||
@@ -2362,6 +2943,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2380,6 +2982,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2398,6 +3021,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2416,6 +3060,27 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-eu"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"europe",
|
||||
"oceania"
|
||||
@@ -2434,6 +3099,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
1
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2451,6 +3136,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
3
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2468,6 +3173,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
5
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -2485,6 +3210,26 @@
|
||||
"cores": [
|
||||
"picodrive"
|
||||
],
|
||||
"slot": {
|
||||
"groups": [
|
||||
"PicoDrive:variant:mega-cd-bios"
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"picodrive": {
|
||||
"ranks": [
|
||||
7
|
||||
],
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
"sets": [
|
||||
"mega-cd-jp"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"regions": [
|
||||
"japan"
|
||||
],
|
||||
@@ -33166,5 +33911,10 @@
|
||||
"fbneo"
|
||||
]
|
||||
}
|
||||
],
|
||||
"truth_files": [],
|
||||
"truth_omitted": [],
|
||||
"standalone_builds": [
|
||||
"dosbox_pure"
|
||||
]
|
||||
}
|
||||
+1495
File diff suppressed because it is too large.
Load diff
+4655
-295
File diff suppressed because it is too large.
Load diff
+5513
-138
File diff suppressed because it is too large.
Load diff
+9281
-242
File diff suppressed because it is too large.
Load diff
+23171
-1809
File diff suppressed because it is too large.
Load diff
+5215
-185
File diff suppressed because it is too large.
Load diff
+3494
-28
File diff suppressed because it is too large.
Load diff
+1717
-293
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"platform": "myminui",
|
||||
"standalone_layouts": {
|
||||
"dosbox_pure": [
|
||||
[
|
||||
"MT32_CONTROL.ROM",
|
||||
"5a5cb5a77d7d55ee69657c2f870416daed52dea7"
|
||||
],
|
||||
[
|
||||
"CM32L_CONTROL.ROM",
|
||||
"73683d585cd6948cc19547942ca0e14a0319456d"
|
||||
],
|
||||
[
|
||||
"CM32LN_CONTROL.ROM",
|
||||
"dc1c5b1b90a4646d00f7daf3679733c7badc7077"
|
||||
],
|
||||
[
|
||||
"MT32_PCM.ROM",
|
||||
"f6b1eebc4b2d200ec6d3d21d51325d5b48c60252"
|
||||
],
|
||||
[
|
||||
"CM32L_PCM.ROM",
|
||||
"289cc298ad532b702461bfc738009d9ebe8025ea"
|
||||
],
|
||||
[
|
||||
"DOSBOX.SF2",
|
||||
"a00461dbea40093cb9ca1694de9c0ec7ca5650c1"
|
||||
],
|
||||
[
|
||||
"SC-55/ROM1.BIN",
|
||||
"b91bb1d9dccffe831b7cfde7800a3fe32b2fbda6"
|
||||
],
|
||||
[
|
||||
"SC-55/ROM2.BIN",
|
||||
"078cb5feea05e80bb9a1bb857a2163ee434fd053"
|
||||
],
|
||||
[
|
||||
"SC-55/ROM_SM.BIN",
|
||||
"4d48578d811a762a8e7bfaf18989bcac70ae1ba4"
|
||||
],
|
||||
[
|
||||
"SC-55/WAVEROM1.BIN",
|
||||
"96708cb21381c2fd03de4babbf7aea301c7594a6"
|
||||
],
|
||||
[
|
||||
"SC-55/WAVEROM2.BIN",
|
||||
"4d91cdeaed048d653dbf846a221003c3a3f08279"
|
||||
],
|
||||
[
|
||||
"SC-55-v1.00/sc55_rom1.bin",
|
||||
"675ea03634429c49fdeebf14849953bc1dd844aa"
|
||||
],
|
||||
[
|
||||
"SC-55-v1.00/sc55_rom2.bin",
|
||||
"f7f8ac018d24be8de6cc37ed4a3b3bfc0953510a"
|
||||
],
|
||||
[
|
||||
"SC-55-v1.00/sc55_waverom1.bin",
|
||||
"8cc3c0d7ec0993df81d4ca1970e01a4b0d8d3775"
|
||||
],
|
||||
[
|
||||
"SC-55-v1.00/sc55_waverom2.bin",
|
||||
"80e6eb130c18c09955551563f78906163c55cc11"
|
||||
],
|
||||
[
|
||||
"SC-55-v1.00/sc55_waverom3.bin",
|
||||
"7454b817778179806f3f9d1985b3a2ef67ace76f"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"platform": "nextui",
|
||||
"standalone_layouts": {
|
||||
"bluemsx": [],
|
||||
"cap32": []
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -55,6 +55,10 @@
|
||||
"description": "Built without game data, absent when the game data is listed",
|
||||
"const": true
|
||||
},
|
||||
"slot_fields": {
|
||||
"description": "The entries a slot decides carry slot, which --one-per-slot reads. Without it the installer refuses --one-per-slot.",
|
||||
"const": true
|
||||
},
|
||||
"platform": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
@@ -378,6 +382,14 @@
|
||||
"description": "The rank the code searches the file at, lower first: a world file withdraws an unmatched regional one only when it ranks no worse.",
|
||||
"type": "integer"
|
||||
},
|
||||
"truth": {
|
||||
"description": "false when the list --source truth installs lacks this omission.",
|
||||
"const": false
|
||||
},
|
||||
"slot": {
|
||||
"description": "What --one-per-slot reads for this entry: the groups it competes in and what each emulator declares at each key the slot lookup tries.",
|
||||
"$ref": "#/$defs/slot"
|
||||
},
|
||||
"declared_in": {
|
||||
"description": "The platform systems declaring the file, when fewer than `systems`, which also names the systems whose cores read it there.",
|
||||
"type": "array",
|
||||
@@ -443,6 +455,29 @@
|
||||
"$ref": "#/$defs/file"
|
||||
}
|
||||
},
|
||||
"truth_files": {
|
||||
"description": "Files only the list --source truth installs holds, at their destination with their bytes. With the files not marked truth: false they make that list. Absent on a list built before it, on which --source truth is refused.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/file"
|
||||
}
|
||||
},
|
||||
"truth_omitted": {
|
||||
"description": "Omissions only the list --source truth installs holds.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"standalone_builds": {
|
||||
"description": "The emulators whose standalone build install/standalone/<platform>.json describes, which --emulator NAME --standalone reads. Absent when none has one.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"uniqueItems": true
|
||||
},
|
||||
"data_directories": {
|
||||
"description": "Data trees the pack carries, rebuilt by the installer from their source archive. Each file is kept only when its sha1 matches.",
|
||||
"type": "array",
|
||||
@@ -657,6 +692,137 @@
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"slot_chain": {
|
||||
"description": "The groups listing the file under one more name, and that name's keys.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"groups",
|
||||
"keys"
|
||||
],
|
||||
"properties": {
|
||||
"groups": {
|
||||
"description": "The groups listing the file under this name, once per time a group lists it.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"keys": {
|
||||
"description": "Per key the slot lookup tries, in order, each emulator's ranks, regions and sets there. A key whose claims equal the previous one's is left out.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"ranks"
|
||||
],
|
||||
"properties": {
|
||||
"ranks": {
|
||||
"description": "The priority: of each entry of the emulator at this key, null for one without, lower first.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"regions": {
|
||||
"description": "The regions the emulator's code selects the file for at this key.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"sets": {
|
||||
"description": "The sets the emulator files the file in at this key. A rank orders one set.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"slot": {
|
||||
"description": "What --one-per-slot reads: the groups the file competes in, once per time a group lists it, then the keys the slot lookup tries for the name those groups give it, each with what every emulator declares there. A group naming the file otherwise has its own groups and keys in also.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"groups",
|
||||
"keys"
|
||||
],
|
||||
"properties": {
|
||||
"also": {
|
||||
"description": "Each other name a group gives the file, with its own groups and keys.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/slot_chain"
|
||||
}
|
||||
},
|
||||
"groups": {
|
||||
"description": "The groups listing the file under this name, once per time a group lists it.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"keys": {
|
||||
"description": "Per key the slot lookup tries, in order, each emulator's ranks, regions and sets there. A key whose claims equal the previous one's is left out.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"ranks"
|
||||
],
|
||||
"properties": {
|
||||
"ranks": {
|
||||
"description": "The priority: of each entry of the emulator at this key, null for one without, lower first.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"regions": {
|
||||
"description": "The regions the emulator's code selects the file for at this key.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"sets": {
|
||||
"description": "The sets the emulator files the file in at this key. A rank orders one set.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"file": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
@@ -804,6 +970,14 @@
|
||||
"description": "The rank the code searches the file at, lower first: a world file withdraws an unmatched regional one only when it ranks no worse.",
|
||||
"type": "integer"
|
||||
},
|
||||
"truth": {
|
||||
"description": "false when the list --source truth installs lacks this file at this destination with these bytes.",
|
||||
"const": false
|
||||
},
|
||||
"slot": {
|
||||
"description": "What --one-per-slot reads for this entry: the groups it competes in and what each emulator declares at each key the slot lookup tries.",
|
||||
"$ref": "#/$defs/slot"
|
||||
},
|
||||
"alternatives": {
|
||||
"description": "Copies other cores read at this destination when they disagree on its content, in the order the pack builder tries them. A narrowing that drops the entry's cores takes the first whose cores remain.",
|
||||
"type": "array",
|
||||
|
||||
@@ -0,0 +1,727 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://abdess.github.io/retrobios/api/v1/schemas/install-standalone.schema.json",
|
||||
"title": "RetroBIOS standalone build layouts",
|
||||
"description": "install/standalone/<platform>.json: per emulator with a standalone build, the files generate_pack.py --emulator NAME --standalone packs, at the destinations that build reads. install.py reads it only with --standalone.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"schema",
|
||||
"platform",
|
||||
"standalone_layouts"
|
||||
],
|
||||
"properties": {
|
||||
"schema": {
|
||||
"const": 1
|
||||
},
|
||||
"platform": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"standalone_layouts": {
|
||||
"description": "Per emulator with a standalone build, the files generate_pack.py --emulator --standalone packs, at the destinations that build reads: an entry, or [dest, sha1] when the list carries that content.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"prefixItems": [
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$"
|
||||
}
|
||||
],
|
||||
"minItems": 2,
|
||||
"maxItems": 2
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/file"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"file": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"dest",
|
||||
"sha1",
|
||||
"sha256",
|
||||
"size",
|
||||
"repo_path",
|
||||
"cores"
|
||||
],
|
||||
"properties": {
|
||||
"dest": {
|
||||
"type": "string",
|
||||
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$",
|
||||
"description": "Path below base_destination, below the save directory when root is save, below the roms folder when root is roms, below the configs folder when root is configs, or in an emulator folder when root is emulators (its key first)."
|
||||
},
|
||||
"sha1": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$",
|
||||
"description": "SHA1 of the copy the repository serves. The installer checks it after download."
|
||||
},
|
||||
"sha256": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{64}$",
|
||||
"description": "SHA256 of the same copy."
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "Bytes of the same copy."
|
||||
},
|
||||
"repo_path": {
|
||||
"type": "string",
|
||||
"description": "Path in the repository. Fetched from `https://raw.githubusercontent.com/Abdess/retrobios/<ref>/<repo_path>`, ref being main unless RETROBIOS_REF names a tag."
|
||||
},
|
||||
"cores": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
],
|
||||
"description": "Profiles whose core brings the file into the pack. Null for a file the platform's own list declares."
|
||||
},
|
||||
"storage": {
|
||||
"const": "release",
|
||||
"description": "release when the file is a large-files release asset."
|
||||
},
|
||||
"release_asset": {
|
||||
"type": "string",
|
||||
"pattern": "^[^/\\\\]+$",
|
||||
"description": "Asset of the large-files release, fetched from `https://github.com/Abdess/retrobios/releases/download/large-files/<asset>` instead of repo_path."
|
||||
},
|
||||
"systems": {
|
||||
"description": "Every platform system that declares the file, for the installer's --system.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"regions": {
|
||||
"description": "The regions the emulator code selects the file for. Absent when it never competes.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"argentina",
|
||||
"asia",
|
||||
"asia-ntsc",
|
||||
"asia-pal",
|
||||
"australia",
|
||||
"brazil",
|
||||
"canada",
|
||||
"china",
|
||||
"denmark",
|
||||
"europe",
|
||||
"finland",
|
||||
"france",
|
||||
"germany",
|
||||
"greece",
|
||||
"hong-kong",
|
||||
"india",
|
||||
"italy",
|
||||
"japan",
|
||||
"latin-america",
|
||||
"mexico",
|
||||
"netherlands",
|
||||
"new-zealand",
|
||||
"north-america",
|
||||
"norway",
|
||||
"oceania",
|
||||
"poland",
|
||||
"portugal",
|
||||
"russia",
|
||||
"singapore",
|
||||
"south-korea",
|
||||
"spain",
|
||||
"sweden",
|
||||
"taiwan",
|
||||
"uk",
|
||||
"world"
|
||||
]
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"region_groups": {
|
||||
"description": "Groups the file competes in as a core extra, whatever systems are chosen.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"region_system_groups": {
|
||||
"description": "Groups the file competes in as the platform's own declaration: present only when that system is kept.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"priority": {
|
||||
"description": "The rank the code searches the file at, lower first: a world file withdraws an unmatched regional one only when it ranks no worse.",
|
||||
"type": "integer"
|
||||
},
|
||||
"truth": {
|
||||
"description": "false when the list --source truth installs lacks this file at this destination with these bytes.",
|
||||
"const": false
|
||||
},
|
||||
"slot": {
|
||||
"description": "What --one-per-slot reads for this entry: the groups it competes in and what each emulator declares at each key the slot lookup tries.",
|
||||
"$ref": "#/$defs/slot"
|
||||
},
|
||||
"alternatives": {
|
||||
"description": "Copies other cores read at this destination when they disagree on its content, in the order the pack builder tries them. A narrowing that drops the entry's cores takes the first whose cores remain.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"sha1",
|
||||
"sha256",
|
||||
"size",
|
||||
"repo_path",
|
||||
"cores"
|
||||
],
|
||||
"properties": {
|
||||
"sha1": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$",
|
||||
"description": "SHA1 of this copy."
|
||||
},
|
||||
"sha256": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{64}$",
|
||||
"description": "SHA256 of this copy."
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "Bytes of this copy."
|
||||
},
|
||||
"repo_path": {
|
||||
"type": "string",
|
||||
"description": "Path of this copy in the repository, fetched as the entry's repo_path is."
|
||||
},
|
||||
"storage": {
|
||||
"const": "release",
|
||||
"description": "release when this copy is a large-files release asset."
|
||||
},
|
||||
"release_asset": {
|
||||
"type": "string",
|
||||
"pattern": "^[^/\\\\]+$",
|
||||
"description": "Asset of the large-files release holding this copy, fetched instead of repo_path."
|
||||
},
|
||||
"cores": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"description": "Profiles whose core reads this copy."
|
||||
},
|
||||
"executable": {
|
||||
"type": "boolean",
|
||||
"description": "The repository keeps this copy executable."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"slot_choices": {
|
||||
"description": "On a platform file a core's own source contradicts while the frontend only checks the path: the copy each core's presence puts there, in the order the pack builder settles the slot. A narrowing serves the first whose cores remain. One naming only cores, or none remaining, leaves `declared_choices`.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"cores"
|
||||
],
|
||||
"properties": {
|
||||
"sha1": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$",
|
||||
"description": "SHA1 of this copy."
|
||||
},
|
||||
"sha256": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{64}$",
|
||||
"description": "SHA256 of this copy."
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "Bytes of this copy."
|
||||
},
|
||||
"repo_path": {
|
||||
"type": "string",
|
||||
"description": "Path of this copy in the repository, fetched as the entry's repo_path is."
|
||||
},
|
||||
"storage": {
|
||||
"const": "release",
|
||||
"description": "release when this copy is a large-files release asset."
|
||||
},
|
||||
"release_asset": {
|
||||
"type": "string",
|
||||
"pattern": "^[^/\\\\]+$",
|
||||
"description": "Asset of the large-files release holding this copy, fetched instead of repo_path."
|
||||
},
|
||||
"cores": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"description": "Profiles whose presence puts this copy in the slot."
|
||||
},
|
||||
"executable": {
|
||||
"type": "boolean",
|
||||
"description": "The repository keeps this copy executable."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"declared_choices": {
|
||||
"description": "The platform's own answer at the destination by the declaring systems that remain, in the order the pack builder takes the declarations. A narrowing serves the first whose systems remain.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"sha1",
|
||||
"sha256",
|
||||
"size",
|
||||
"repo_path",
|
||||
"systems"
|
||||
],
|
||||
"properties": {
|
||||
"sha1": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$",
|
||||
"description": "SHA1 of this copy."
|
||||
},
|
||||
"sha256": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{64}$",
|
||||
"description": "SHA256 of this copy."
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "Bytes of this copy."
|
||||
},
|
||||
"repo_path": {
|
||||
"type": "string",
|
||||
"description": "Path of this copy in the repository, fetched as the entry's repo_path is."
|
||||
},
|
||||
"storage": {
|
||||
"const": "release",
|
||||
"description": "release when this copy is a large-files release asset."
|
||||
},
|
||||
"release_asset": {
|
||||
"type": "string",
|
||||
"pattern": "^[^/\\\\]+$",
|
||||
"description": "Asset of the large-files release holding this copy, fetched instead of repo_path."
|
||||
},
|
||||
"executable": {
|
||||
"type": "boolean",
|
||||
"description": "The repository keeps this copy executable."
|
||||
},
|
||||
"systems": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"description": "Platform systems whose declaration this copy answers."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"category": {
|
||||
"description": "game_data: a game's own data, not firmware. Absent on firmware. The installer's --no-game-data leaves these out, as a pack built with --no-game-data does.",
|
||||
"const": "game_data"
|
||||
},
|
||||
"executable": {
|
||||
"description": "The repository keeps the file executable, and the installer gives it the execute bits the umask allows.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"declared_in": {
|
||||
"description": "The platform systems declaring the file, when fewer than `systems`, which also names the systems whose cores read it there.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"uniqueItems": true
|
||||
},
|
||||
"absent_claims": {
|
||||
"description": "Cores that want this destination and have nothing held, after the cores served here: a narrowing that keeps none of those takes the first named one as a file left out, as a pack built for it lists it.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name",
|
||||
"system",
|
||||
"required",
|
||||
"reason",
|
||||
"cores"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"description": "File name the declaration gives."
|
||||
},
|
||||
"system": {
|
||||
"type": "string",
|
||||
"description": "System id of the declaration. Empty when the core's file names none."
|
||||
},
|
||||
"required": {
|
||||
"type": "boolean",
|
||||
"description": "The platform or the core needs the file to run, as the declaration says."
|
||||
},
|
||||
"reason": {
|
||||
"enum": [
|
||||
"hash_mismatch",
|
||||
"not_found",
|
||||
"external",
|
||||
"user_provided",
|
||||
"no_platform_slug",
|
||||
"below_platform_folder"
|
||||
],
|
||||
"description": "Why the file is left out, as a code. enumDescriptions gives the meaning of each code, in the order of enum.",
|
||||
"enumDescriptions": [
|
||||
"The platform checks the hash and the only copy held contradicts the one it declares, so the frontend would refuse it.",
|
||||
"The collection holds no copy the declaration accepts.",
|
||||
"The declaration keeps the file outside the repository (storage: external). The pack builder downloads it from its own address, the installer does not.",
|
||||
"The user supplies the file (storage: user_provided). The pack writes its instructions in its place.",
|
||||
"The platform keeps one folder per system and has none for the system the core's file belongs to.",
|
||||
"The platform lists each system folder flat (firmware_folder_flat) and the file would sit in a subfolder it does not read."
|
||||
]
|
||||
},
|
||||
"cores": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
],
|
||||
"description": "Profiles whose core wants the file. Null for a file the platform's own list declares."
|
||||
},
|
||||
"regions": {
|
||||
"description": "The regions the emulator code selects the file for. Absent when it never competes.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"argentina",
|
||||
"asia",
|
||||
"asia-ntsc",
|
||||
"asia-pal",
|
||||
"australia",
|
||||
"brazil",
|
||||
"canada",
|
||||
"china",
|
||||
"denmark",
|
||||
"europe",
|
||||
"finland",
|
||||
"france",
|
||||
"germany",
|
||||
"greece",
|
||||
"hong-kong",
|
||||
"india",
|
||||
"italy",
|
||||
"japan",
|
||||
"latin-america",
|
||||
"mexico",
|
||||
"netherlands",
|
||||
"new-zealand",
|
||||
"north-america",
|
||||
"norway",
|
||||
"oceania",
|
||||
"poland",
|
||||
"portugal",
|
||||
"russia",
|
||||
"singapore",
|
||||
"south-korea",
|
||||
"spain",
|
||||
"sweden",
|
||||
"taiwan",
|
||||
"uk",
|
||||
"world"
|
||||
]
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"region_groups": {
|
||||
"description": "Groups the file competes in as a core extra, whatever systems are chosen.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"region_system_groups": {
|
||||
"description": "Groups the file competes in as the platform's own declaration: present only when that system is kept.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"systems": {
|
||||
"description": "Every platform system that declares the file, for the installer's --system.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1000,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"priority": {
|
||||
"description": "The rank the code searches the file at, lower first: a world file withdraws an unmatched regional one only when it ranks no worse.",
|
||||
"type": "integer"
|
||||
},
|
||||
"declared_in": {
|
||||
"description": "The platform systems declaring the file, when fewer than `systems`, which also names the systems whose cores read it there.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"description": "save: dest is relative to the save directory the frontend hands the core (RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY), not to the BIOS directory. roms: dest is relative to the platform's roms folder, which roms_directory locates (a file its launcher runs from there, ROCKNIX's roms/pico-8). emulators: dest is the key of an emulator folder of the platform, then the path in it, located by emulators_directory (RetroBat's emulators/pico8). configs: dest is relative to the frontend's configs folder, which configs_directory locates (Batocera starts shadPS4 from configs/shadps4). Absent for a file of the BIOS tree.",
|
||||
"enum": [
|
||||
"save",
|
||||
"roms",
|
||||
"emulators",
|
||||
"configs"
|
||||
]
|
||||
},
|
||||
"core_folder": {
|
||||
"description": "The core's library_name, the folder a frontend sorting saves by core (RetroArch's sort_savefiles_enable) inserts between its save directory and dest. Only with root: save. Absent on a save entry when the core reads the same place sorted or not.",
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"pattern": "^[^/\\\\]+$"
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"required": [
|
||||
"release_asset"
|
||||
]
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"repo_path": {
|
||||
"type": "string",
|
||||
"pattern": "^bios/",
|
||||
"description": "Without release_asset, the copy is served from the repository's bios/ tree."
|
||||
}
|
||||
},
|
||||
"not": {
|
||||
"required": [
|
||||
"release_asset"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"slot": {
|
||||
"description": "What --one-per-slot reads: the groups the file competes in, once per time a group lists it, then the keys the slot lookup tries for the name those groups give it, each with what every emulator declares there. A group naming the file otherwise has its own groups and keys in also.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"groups",
|
||||
"keys"
|
||||
],
|
||||
"properties": {
|
||||
"also": {
|
||||
"description": "Each other name a group gives the file, with its own groups and keys.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/slot_chain"
|
||||
}
|
||||
},
|
||||
"groups": {
|
||||
"description": "The groups listing the file under this name, once per time a group lists it.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"keys": {
|
||||
"description": "Per key the slot lookup tries, in order, each emulator's ranks, regions and sets there. A key whose claims equal the previous one's is left out.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"ranks"
|
||||
],
|
||||
"properties": {
|
||||
"ranks": {
|
||||
"description": "The priority: of each entry of the emulator at this key, null for one without, lower first.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"regions": {
|
||||
"description": "The regions the emulator's code selects the file for at this key.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"sets": {
|
||||
"description": "The sets the emulator files the file in at this key. A rank orders one set.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"slot_chain": {
|
||||
"description": "The groups listing the file under one more name, and that name's keys.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"groups",
|
||||
"keys"
|
||||
],
|
||||
"properties": {
|
||||
"groups": {
|
||||
"description": "The groups listing the file under this name, once per time a group lists it.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"keys": {
|
||||
"description": "Per key the slot lookup tries, in order, each emulator's ranks, regions and sets there. A key whose claims equal the previous one's is left out.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"ranks"
|
||||
],
|
||||
"properties": {
|
||||
"ranks": {
|
||||
"description": "The priority: of each entry of the emulator at this key, null for one without, lower first.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"regions": {
|
||||
"description": "The regions the emulator's code selects the file for at this key.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"sets": {
|
||||
"description": "The sets the emulator files the file in at this key. A rank orders one set.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+198
-15
@@ -34,6 +34,7 @@ import shutil
|
||||
import tempfile
|
||||
import zipfile
|
||||
from pathlib import Path, PurePosixPath
|
||||
from typing import Any
|
||||
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
from alternatives import core_file_spares, settle_sets, slot_set_keys
|
||||
@@ -775,14 +776,8 @@ def _select_variants(
|
||||
|
||||
slot_undecidable: list[str] = []
|
||||
if one_per_slot:
|
||||
slot_groups = {
|
||||
sys_id: [(d, n) for d, n in members if d not in region_drops]
|
||||
for sys_id, members in region_groups.items()
|
||||
}
|
||||
slot_drops, slot_undecidable = slot_mod.resolve_slot_drops(
|
||||
slot_groups,
|
||||
slot_mod.platform_slot_index(config, emu_profiles or {}, target_cores),
|
||||
held,
|
||||
slot_drops, slot_undecidable = _slot_drops(
|
||||
config, emu_profiles, target_cores, region_groups, region_drops, held
|
||||
)
|
||||
region_drops = region_drops | slot_drops
|
||||
if slot_undecidable:
|
||||
@@ -794,6 +789,27 @@ def _select_variants(
|
||||
return region_drops, region_fallbacks, slot_undecidable
|
||||
|
||||
|
||||
def _slot_drops(
|
||||
config: dict,
|
||||
emu_profiles: dict | None,
|
||||
target_cores: set[str] | None,
|
||||
region_groups: dict[str, list[tuple[str, str]]],
|
||||
region_drops: set[str],
|
||||
held: set[str],
|
||||
) -> tuple[set[str], list[str]]:
|
||||
"""What --one-per-slot withdraws once the regions have, and the slots no
|
||||
declared order decides. The pack and the manifest both read it."""
|
||||
slot_groups = {
|
||||
sys_id: [(d, n) for d, n in members if d not in region_drops]
|
||||
for sys_id, members in region_groups.items()
|
||||
}
|
||||
return slot_mod.resolve_slot_drops(
|
||||
slot_groups,
|
||||
slot_mod.platform_slot_index(config, emu_profiles or {}, target_cores),
|
||||
held,
|
||||
)
|
||||
|
||||
|
||||
def _platform_pack_name(
|
||||
platform_name: str,
|
||||
platforms_dir: str,
|
||||
@@ -2948,8 +2964,9 @@ def _run_manifest_mode(
|
||||
tc = target_cores_cache.get(representative) if args.target else None
|
||||
if _skip_empty_truth(args, source, representative, emu_profiles, tc, failed):
|
||||
continue
|
||||
layouts: dict = {}
|
||||
try:
|
||||
manifest = generate_manifest(
|
||||
manifest = generate_install_list(
|
||||
representative,
|
||||
args.platforms_dir,
|
||||
db,
|
||||
@@ -2967,6 +2984,7 @@ def _run_manifest_mode(
|
||||
offline=args.offline,
|
||||
required_only=required_only,
|
||||
no_game_data=getattr(args, "no_game_data", False),
|
||||
standalone_out=layouts,
|
||||
)
|
||||
narrow_suffix = "".join(
|
||||
tag.lower()
|
||||
@@ -2989,6 +3007,9 @@ def _run_manifest_mode(
|
||||
f"{manifest['total_size']} bytes, "
|
||||
f"{manifest['total_omitted']} safely omitted"
|
||||
)
|
||||
for plat in group_platforms if layouts else ():
|
||||
print(f" {_write_standalone_layouts(args.output_dir, plat, layouts)}: "
|
||||
f"{len(layouts)} standalone builds")
|
||||
# Create aliases for grouped platforms (e.g., lakka -> retroarch)
|
||||
for alias_plat in group_platforms:
|
||||
if alias_plat != representative:
|
||||
@@ -4649,12 +4670,14 @@ def _manifest_selection(
|
||||
zip_contents: dict | None = None,
|
||||
data_registry: dict | None = None,
|
||||
slot_overrides: dict[str, str] | None = None,
|
||||
one_per_slot: bool = False,
|
||||
) -> tuple[set[str], SelectionIndex, set[str]]:
|
||||
"""Destinations a region list removes, the groups the installer replays,
|
||||
and the destinations the builder holds.
|
||||
"""Destinations a region list and --one-per-slot remove, the groups the
|
||||
installer replays, and the destinations the builder holds.
|
||||
|
||||
Grouped as the pack groups them, so a region the installer applies to
|
||||
the full manifest withdraws what `--region` withdraws from the pack.
|
||||
Grouped as the pack groups them, so a region or a slot the installer
|
||||
decides on the full manifest withdraws what `--region` and
|
||||
`--one-per-slot` withdraw from the pack.
|
||||
"""
|
||||
extras: list[dict] = []
|
||||
held: set[str] = set()
|
||||
@@ -4684,9 +4707,14 @@ def _manifest_selection(
|
||||
if regions
|
||||
else set()
|
||||
)
|
||||
if one_per_slot:
|
||||
drops = drops | _slot_drops(
|
||||
config, emu_profiles, target_cores, region_groups, drops, held
|
||||
)[0]
|
||||
return drops, SelectionIndex.build(
|
||||
region_groups, region_index, pack_systems, extras, required_only,
|
||||
extras_prefix=declared_root(config),
|
||||
slot_claims=slot_mod.platform_slot_claims(config, emu_profiles, target_cores),
|
||||
), held
|
||||
|
||||
|
||||
@@ -4853,6 +4881,9 @@ def generate_manifest(
|
||||
data_registry: dict | None = None,
|
||||
fold_case: bool | None = None,
|
||||
no_game_data: bool = False,
|
||||
one_per_slot: bool = False,
|
||||
known_slot_choices: dict | None = None,
|
||||
build_out: dict | None = None,
|
||||
) -> dict:
|
||||
"""Generate a JSON manifest for a platform (same resolution as generate_pack).
|
||||
|
||||
@@ -4863,6 +4894,9 @@ def generate_manifest(
|
||||
A file that is a game's data, not firmware, carries ``"category":
|
||||
"game_data"``, so the installer can leave it out as the builder does
|
||||
under ``no_game_data``. Firmware carries no category.
|
||||
One build: generate_install_list adds what --source truth and
|
||||
--standalone read. `build_out` receives the slot choices and the
|
||||
profiles this build read, which that second build takes over.
|
||||
"""
|
||||
config = load_platform_config(platform_name, platforms_dir)
|
||||
if fold_case is not None:
|
||||
@@ -4947,8 +4981,10 @@ def generate_manifest(
|
||||
# The full manifest records every core's answer at a contested slot, so a
|
||||
# target narrowed from it gets what that target's own pack serves.
|
||||
whole = target_cores is None and source != "platform" and bool(emu_profiles)
|
||||
# The truth list read inside this run takes the choices already made.
|
||||
slot_choices = (
|
||||
slots.slot_choices(config, emu_profiles, db, zip_contents, data_registry)
|
||||
known_slot_choices if known_slot_choices is not None and whole
|
||||
else slots.slot_choices(config, emu_profiles, db, zip_contents, data_registry)
|
||||
if whole else {}
|
||||
)
|
||||
# Derived from the same choices: computed twice, it was 8% of a run.
|
||||
@@ -5025,7 +5061,7 @@ def generate_manifest(
|
||||
config, pack_systems, emulators_dir, db, base_dest, emu_profiles,
|
||||
target_cores, source, required_only, regions, undeclared=undeclared,
|
||||
zip_contents=zip_contents, data_registry=data_registry,
|
||||
slot_overrides=slot_overrides,
|
||||
slot_overrides=slot_overrides, one_per_slot=one_per_slot,
|
||||
)
|
||||
|
||||
# Phase 1: baseline files
|
||||
@@ -5317,6 +5353,9 @@ def generate_manifest(
|
||||
# Every game data file below says so: the installer's --no-game-data
|
||||
# relies on it, and refuses a list that does not record categories.
|
||||
"categorized": True,
|
||||
# The entries a slot decides carry `slot`, which --one-per-slot
|
||||
# reads: without this mark the installer refuses it.
|
||||
"slot_fields": True,
|
||||
**({"no_game_data": True} if no_game_data else {}),
|
||||
"platform": platform_name,
|
||||
"display_name": platform_display,
|
||||
@@ -5394,9 +5433,153 @@ def generate_manifest(
|
||||
]
|
||||
if variants:
|
||||
result["case_variants"] = variants
|
||||
if build_out is not None:
|
||||
build_out.update(slot_choices=slot_choices, profiles=manifest_profiles)
|
||||
return result
|
||||
|
||||
|
||||
def generate_install_list(
|
||||
platform_name: str,
|
||||
platforms_dir: str,
|
||||
db: dict,
|
||||
bios_dir: str,
|
||||
registry_path: str,
|
||||
standalone_out: dict | None = None,
|
||||
**options: Any,
|
||||
) -> dict:
|
||||
"""The list install.py reads: the full manifest, the files and omissions
|
||||
the --source truth build holds apart from it, and the emulators with a
|
||||
standalone build. `standalone_out` receives, per such emulator, what
|
||||
`--emulator X --standalone` packs, written apart from the list
|
||||
(install/standalone/<platform>.json) and fetched only by a run given
|
||||
--standalone.
|
||||
|
||||
A manifest narrowed by a target, a case fold or --one-per-slot is no
|
||||
list install.py reads by default and gets neither.
|
||||
"""
|
||||
built: dict = {}
|
||||
result = generate_manifest(platform_name, platforms_dir, db, bios_dir, registry_path,
|
||||
build_out=built, **options)
|
||||
if (options.get("source", "full") != "full" or options.get("target_cores") is not None
|
||||
or options.get("fold_case") is not None or options.get("one_per_slot")):
|
||||
return result
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
truth = generate_manifest(
|
||||
platform_name, platforms_dir, db, bios_dir, registry_path,
|
||||
**{**options, "source": "truth"}, known_slot_choices=built["slot_choices"],
|
||||
)
|
||||
_mark_truth(result, truth)
|
||||
layouts = _standalone_layouts(
|
||||
built["profiles"], options.get("emulators_dir", "emulators"), db, bios_dir,
|
||||
options.get("zip_contents") or {}, options.get("offline"), platforms_dir,
|
||||
os.path.dirname(os.path.dirname(os.path.abspath(__file__))), result,
|
||||
)
|
||||
if layouts:
|
||||
result["standalone_builds"] = sorted(layouts)
|
||||
if standalone_out is not None:
|
||||
standalone_out.update(layouts)
|
||||
return result
|
||||
|
||||
|
||||
STANDALONE_DIR = "standalone"
|
||||
|
||||
|
||||
def _write_standalone_layouts(output_dir: str, platform: str, layouts: dict) -> str:
|
||||
"""install/standalone/<platform>.json, what --standalone reads beside the
|
||||
list. Its [dest, sha1] items take their download from that list."""
|
||||
path = os.path.join(output_dir, STANDALONE_DIR, f"{platform}.json")
|
||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||
_write_manifest_if_changed(path, {
|
||||
"schema": 1, "platform": platform, "standalone_layouts": layouts,
|
||||
})
|
||||
return path
|
||||
|
||||
|
||||
def _truth_key(entry: dict) -> tuple:
|
||||
"""What tells one entry from another, as the installer's _entry_key."""
|
||||
root = entry.get("root")
|
||||
cores = tuple(entry.get("cores") or []) if root == "emulator" else ()
|
||||
return (str(entry.get("dest")), root, cores)
|
||||
|
||||
|
||||
def _mark_truth(result: dict, truth: dict) -> None:
|
||||
"""What `--source truth` installs, carried in the full list.
|
||||
|
||||
The truth list holds what the emulator profiles prove is read. A file of
|
||||
the full list it does not hold, by destination and content, is marked
|
||||
`"truth": false`, and what only the truth list holds is `truth_files`.
|
||||
Omissions compare by destination. The installer then rebuilds the
|
||||
truth list from the full one, and a list without `truth_files` is one
|
||||
published before, on which `--source truth` is refused.
|
||||
"""
|
||||
held = {(_truth_key(entry), entry.get("sha1")) for entry in truth["files"]}
|
||||
full = {(_truth_key(entry), entry.get("sha1")) for entry in result["files"]}
|
||||
for entry in result["files"]:
|
||||
if (_truth_key(entry), entry.get("sha1")) not in held:
|
||||
entry["truth"] = False
|
||||
result["truth_files"] = [
|
||||
entry for entry in truth["files"]
|
||||
if (_truth_key(entry), entry.get("sha1")) not in full
|
||||
]
|
||||
absent = {_truth_key(entry) for entry in truth["omitted_files"]}
|
||||
listed = {_truth_key(entry) for entry in result["omitted_files"]}
|
||||
for entry in result["omitted_files"]:
|
||||
if _truth_key(entry) not in absent:
|
||||
entry["truth"] = False
|
||||
result["truth_omitted"] = [
|
||||
entry for entry in truth["omitted_files"] if _truth_key(entry) not in listed
|
||||
]
|
||||
|
||||
|
||||
def _standalone_layouts(
|
||||
profiles: dict[str, dict],
|
||||
emulators_dir: str,
|
||||
db: dict,
|
||||
bios_dir: str,
|
||||
zip_contents: dict,
|
||||
offline: bool | None,
|
||||
platforms_dir: str,
|
||||
repo_root: str,
|
||||
result: dict,
|
||||
) -> dict[str, list]:
|
||||
"""Per emulator with a standalone build, the files `--emulator X
|
||||
--standalone` packs, at the destinations that build reads.
|
||||
|
||||
Built by the emulator pack itself, in memory. A file whose content the
|
||||
list already carries is written as [dest, sha1], its download read from
|
||||
that entry. Another is written whole. A data tree member is left to the
|
||||
list's data directories.
|
||||
"""
|
||||
known = {
|
||||
copy["sha1"]
|
||||
for entry in [*result["files"], *result.get("truth_files", [])]
|
||||
for copy in [entry, *entry.get("alternatives", []), *entry.get("slot_choices", [])]
|
||||
if copy.get("sha1") and (copy.get("repo_path") or copy.get("release_asset"))
|
||||
}
|
||||
layouts: dict[str, list] = {}
|
||||
for name, profile in sorted(profiles.items()):
|
||||
if "standalone" not in str(profile.get("type", "")):
|
||||
continue
|
||||
record = PackRecord()
|
||||
with contextlib.redirect_stdout(io.StringIO()), \
|
||||
contextlib.redirect_stderr(io.StringIO()):
|
||||
generate_emulator_pack(
|
||||
[name], emulators_dir, db, bios_dir, "", standalone=True,
|
||||
zip_contents=zip_contents, offline=offline,
|
||||
platforms_dir=platforms_dir, record=record,
|
||||
)
|
||||
items: list = []
|
||||
for member in record.files:
|
||||
entry, _size = _manifest_entry(
|
||||
record.sources.get(member), member, [name], db, repo_root, {}
|
||||
)
|
||||
if entry is None:
|
||||
continue
|
||||
items.append([member, entry["sha1"]] if entry["sha1"] in known else entry)
|
||||
layouts[name] = items
|
||||
return layouts
|
||||
|
||||
|
||||
def tree_readers(pack_systems: dict, core_trees: Iterable[dict]) -> dict[str, list[str]]:
|
||||
"""The cores that read each tree, for a tree only cores read. A tree a
|
||||
platform system declares is the system's, whatever core runs it, and
|
||||
|
||||
@@ -18,6 +18,7 @@ from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
|
||||
import region as region_mod
|
||||
import slot as slot_mod
|
||||
from common import _norm_system_id, sanitize_pack_path
|
||||
from packextras import (
|
||||
_kept,
|
||||
@@ -41,6 +42,7 @@ class SelectionIndex:
|
||||
systems_by_dest: dict[str, frozenset[str]]
|
||||
declared_by: dict[str, frozenset[str]]
|
||||
extra_groups: dict[str, frozenset[str]]
|
||||
slots: dict[str, dict]
|
||||
|
||||
@classmethod
|
||||
def build(
|
||||
@@ -51,6 +53,7 @@ class SelectionIndex:
|
||||
extras: list[dict],
|
||||
required_only: bool = False,
|
||||
extras_prefix: str = "",
|
||||
slot_claims: dict[str, dict[str, dict]] | None = None,
|
||||
) -> SelectionIndex:
|
||||
by_norm: dict[str, set[str]] = {}
|
||||
for sys_id in pack_systems:
|
||||
@@ -93,6 +96,7 @@ class SelectionIndex:
|
||||
systems_by_dest,
|
||||
{dest: frozenset(ids) for dest, ids in declared_by.items()},
|
||||
{dest: frozenset(ids) for dest, ids in extra_groups.items()},
|
||||
_slot_fields(region_groups, slot_claims or {}),
|
||||
)
|
||||
|
||||
def fields(self, dest: str, name: str) -> dict:
|
||||
@@ -110,6 +114,8 @@ class SelectionIndex:
|
||||
out["systems"] = sorted(systems)
|
||||
if dest not in self.competing:
|
||||
return out
|
||||
if dest in self.slots:
|
||||
out["slot"] = self.slots[dest]
|
||||
regions = region_mod.lookup_regions(self.region_index, dest, name)
|
||||
if not regions:
|
||||
return out
|
||||
@@ -126,3 +132,65 @@ class SelectionIndex:
|
||||
if priority is not None:
|
||||
out["priority"] = priority
|
||||
return out
|
||||
|
||||
|
||||
def _slot_fields(
|
||||
region_groups: dict[str, list[tuple[str, str]]],
|
||||
claims: dict[str, dict[str, dict]],
|
||||
) -> dict[str, dict]:
|
||||
"""Per destination, the groups it competes in for a slot and the claims
|
||||
at each key slot.lookup_slot would try.
|
||||
|
||||
The builder looks each member up by its own name, so a destination a
|
||||
platform declares under one name and a core under another is looked up
|
||||
twice: the first name's groups and keys head the field, each other
|
||||
name's go in `also`. A name no emulator claims has no keys, which keeps
|
||||
the destination as the builder keeps it. Only a group where some
|
||||
emulator ranks a member can drop a file, so only its members are
|
||||
written, each with all its groups. A key whose claims equal the
|
||||
previous one's answers the same and is left out.
|
||||
"""
|
||||
# Each time a group lists the destination: two cores filing one file in
|
||||
# a group make two candidates of one rank, which no order separates.
|
||||
chains: dict[str, dict[str, list[str]]] = {}
|
||||
for group_id, members in region_groups.items():
|
||||
for dest, name in members:
|
||||
chains.setdefault(dest, {}).setdefault(name, []).append(group_id)
|
||||
|
||||
def keys_of(dest: str, name: str) -> list[str]:
|
||||
return [k for k in slot_mod.slot_lookup_keys(dest, name) if k in claims]
|
||||
|
||||
def ranked(dest: str) -> bool:
|
||||
return any(rank is not None for name in chains.get(dest, {})
|
||||
for key in keys_of(dest, name)
|
||||
for claim in claims[key].values() for rank in claim["ranks"])
|
||||
|
||||
# Every group of such a destination: one where it stays keeps it.
|
||||
written: set[str] = set()
|
||||
for members in region_groups.values():
|
||||
if any(ranked(member) for member, _name in members):
|
||||
written.update(member for member, name in members
|
||||
if any(keys_of(member, other) for other in chains[member]))
|
||||
|
||||
def chain(dest: str, name: str, group_ids: list[str]) -> dict:
|
||||
kept: list[dict] = []
|
||||
for key in keys_of(dest, name):
|
||||
by_emulator = {
|
||||
emulator: {
|
||||
"ranks": claim["ranks"],
|
||||
**({"regions": sorted(claim["regions"])} if claim["regions"] else {}),
|
||||
**({"sets": sorted(g for _owner, g in claim["sets"])}
|
||||
if claim["sets"] else {}),
|
||||
}
|
||||
for emulator, claim in sorted(claims[key].items())
|
||||
}
|
||||
if not kept or kept[-1] != by_emulator:
|
||||
kept.append(by_emulator)
|
||||
return {"groups": sorted(group_ids), "keys": kept}
|
||||
|
||||
fields: dict[str, dict] = {}
|
||||
for dest in sorted(written):
|
||||
first, *others = [chain(dest, name, group_ids)
|
||||
for name, group_ids in chains[dest].items()]
|
||||
fields[dest] = {**first, **({"also": others} if others else {})}
|
||||
return fields
|
||||
@@ -45,6 +45,7 @@ EXIT_CODES = (
|
||||
(1, "a failure: a download, a file list or a folder that cannot be used"),
|
||||
(2, "nothing was done: an option refused, every file failed, or the user quit"),
|
||||
(3, "`--check` found files missing or wrong, nothing having failed"),
|
||||
(4, "`--find` read the hash and the list holds no one file for it"),
|
||||
(130, "stopped with Ctrl+C"),
|
||||
(141, "the output went to a reader that closed early"),
|
||||
)
|
||||
|
||||
@@ -998,7 +998,8 @@ GLANCE_GROUPS: tuple[tuple[str, tuple[str, ...]], ...] = (
|
||||
("Where and for what", ("--platform", "--dest", "--target", "--every-board", "--save-dir",
|
||||
"--romm-firmware", "--standalone-copies", "--add-app")),
|
||||
("Fewer files", ("--for-games", "--required-only", "--all-files", "--system", "--core", "--emulator",
|
||||
"--region", "--no-game-data", "--declared-only", "--installed-cores",
|
||||
"--standalone", "--region", "--one-per-slot", "--no-game-data",
|
||||
"--declared-only", "--source", "--find", "--installed-cores",
|
||||
"--cores-dir")),
|
||||
("Look first", ("--check", "--dry-run", "--list-platforms", "--list-targets",
|
||||
"--list-systems", "--list-cores", "--list-emulators")),
|
||||
@@ -1007,7 +1008,7 @@ GLANCE_GROUPS: tuple[tuple[str, tuple[str, ...]], ...] = (
|
||||
("Remove and put back", ("--remove", "--file", "--misplaced", "--backup", "--backups",
|
||||
"--restore", "--delete-backup")),
|
||||
("How the run talks", ("--tui", "--plain", "--no-input", "--yes", "--quiet", "--verbose",
|
||||
"--events", "--jobs", "--version", "--help")),
|
||||
"--events", "--json", "--jobs", "--version", "--help")),
|
||||
)
|
||||
GLANCE_OTHER = "Other"
|
||||
|
||||
|
||||
+62
-31
@@ -43,15 +43,31 @@ def platform_slot_index(
|
||||
PlayStation BIOS of RomM, whose cores rank none of them, and
|
||||
`--one-per-slot` dropped four images RomM declares.
|
||||
"""
|
||||
return {
|
||||
key: merge_claims(by_emu)
|
||||
for key, by_emu in platform_slot_claims(config, profiles, target_cores).items()
|
||||
}
|
||||
|
||||
|
||||
def platform_slot_claims(
|
||||
config: dict, profiles: dict, target_cores: set[str] | None = None
|
||||
) -> dict[str, dict[str, dict]]:
|
||||
"""What each emulator a platform runs declares at each key, unmerged."""
|
||||
from common import resolve_platform_cores # noqa: PLC0415
|
||||
|
||||
cores = resolve_platform_cores(config, profiles, target_cores=target_cores)
|
||||
return build_slot_index({n: profiles[n] for n in cores if n in profiles})
|
||||
return slot_claims({n: profiles[n] for n in cores if n in profiles})
|
||||
|
||||
|
||||
def build_slot_index(profiles: dict) -> dict[str, dict]:
|
||||
"""Map a file key to its slot metadata, keyed by path then name."""
|
||||
index: dict[str, dict] = {}
|
||||
def slot_claims(profiles: dict) -> dict[str, dict[str, dict]]:
|
||||
"""Per key (path, standalone path, name), what each emulator declares there.
|
||||
|
||||
Each claim holds the ranks the emulator gives the key in declaration
|
||||
order, None for an entry without one, the regions, and the set keys.
|
||||
The install manifest carries these unmerged, so the installer merges
|
||||
them over the cores a board runs as build_slot_index merges them here.
|
||||
"""
|
||||
claims: dict[str, dict[str, dict]] = {}
|
||||
for emu_name, profile in sorted(profiles.items()):
|
||||
if profile.get("type") in ("launcher", "alias"):
|
||||
continue
|
||||
@@ -64,34 +80,49 @@ def build_slot_index(profiles: dict) -> dict[str, dict]:
|
||||
path = f.get("path") or ""
|
||||
# Keyed by the standalone layout too, as build_region_index is.
|
||||
for key in {path, f.get("standalone_path") or "", name} - {""}:
|
||||
entry = index.setdefault(
|
||||
key,
|
||||
{"rank": None, "conflict": False, "regions": set(),
|
||||
"emulators": [], "ranked_by": set(), "unranked_by": set(),
|
||||
"sets": set()},
|
||||
claim = claims.setdefault(key, {}).setdefault(
|
||||
emu_name, {"ranks": [], "regions": set(), "sets": set()}
|
||||
)
|
||||
entry["regions"] |= {str(r) for r in (f.get("region") or [])}
|
||||
entry["sets"] |= set(set_keys(emu_name, f))
|
||||
rank = f.get("priority")
|
||||
entry["unranked_by" if rank is None else "ranked_by"].add(emu_name)
|
||||
if rank is not None:
|
||||
current = entry["rank"]
|
||||
if current is not None and current != rank:
|
||||
entry["conflict"] = True
|
||||
entry["rank"] = (
|
||||
rank if current is None else min(current, rank)
|
||||
)
|
||||
if emu_name not in entry["emulators"]:
|
||||
entry["emulators"].append(emu_name)
|
||||
# A core that declares the file without a rank loads it by a rule of its
|
||||
# own: Genesis Plus GX opens bios_CD_U.bin by name for a US disc, and
|
||||
# PicoDrive's rank 4 for it would let its rank-3 file replace it.
|
||||
for entry in index.values():
|
||||
if entry["ranked_by"] and entry.pop("unranked_by") - entry["ranked_by"]:
|
||||
entry["conflict"] = True
|
||||
entry.pop("unranked_by", None)
|
||||
entry.pop("ranked_by")
|
||||
return index
|
||||
claim["regions"] |= {str(r) for r in (f.get("region") or [])}
|
||||
claim["sets"] |= set(set_keys(emu_name, f))
|
||||
claim["ranks"].append(f.get("priority"))
|
||||
return claims
|
||||
|
||||
|
||||
def merge_claims(by_emulator: dict[str, dict]) -> dict:
|
||||
"""One key's slot metadata, merged over the emulators claiming it.
|
||||
|
||||
Two ranks that differ make the key conflicting. So does an emulator
|
||||
that declares the key without a rank beside one that ranks it: a core
|
||||
that declares the file without a rank loads it by a rule of its own.
|
||||
Genesis Plus GX opens bios_CD_U.bin by name for a US disc, and
|
||||
PicoDrive's rank 4 for it would let its rank-3 file replace it.
|
||||
"""
|
||||
ranks = {r for claim in by_emulator.values() for r in claim["ranks"] if r is not None}
|
||||
ranked_by = {e for e, claim in by_emulator.items()
|
||||
if any(r is not None for r in claim["ranks"])}
|
||||
unranked_by = {e for e, claim in by_emulator.items() if None in claim["ranks"]}
|
||||
return {
|
||||
"rank": min(ranks) if ranks else None,
|
||||
"conflict": len(ranks) > 1 or bool(ranked_by and unranked_by - ranked_by),
|
||||
"regions": {r for claim in by_emulator.values() for r in claim["regions"]},
|
||||
"emulators": sorted(by_emulator),
|
||||
"sets": {k for claim in by_emulator.values() for k in claim["sets"]},
|
||||
}
|
||||
|
||||
|
||||
def build_slot_index(profiles: dict) -> dict[str, dict]:
|
||||
"""Map a file key to its slot metadata, keyed by path then name."""
|
||||
return {key: merge_claims(by_emu) for key, by_emu in slot_claims(profiles).items()}
|
||||
|
||||
|
||||
def slot_lookup_keys(destination: str, name: str) -> list[str]:
|
||||
"""The keys lookup_slot tries, in its order."""
|
||||
keys: list[str] = []
|
||||
if destination:
|
||||
parts = destination.split("/")
|
||||
keys += ["/".join(parts[i:]) for i in range(len(parts))]
|
||||
return [*keys, name]
|
||||
|
||||
|
||||
def lookup_slot(index: dict[str, dict], destination: str, name: str) -> dict | None:
|
||||
|
||||
@@ -738,6 +738,11 @@ def _semantic_install_checks(path: Path, manifest: dict) -> list[str]:
|
||||
f"{path.relative_to(ROOT)}: entries read below the save directory "
|
||||
"and no save_directory"
|
||||
)
|
||||
builds = ROOT / "install" / "standalone" / path.name
|
||||
if manifest.get("standalone_builds") and path.parent == ROOT / "install" \
|
||||
and not builds.is_file():
|
||||
out.append(f"{path.relative_to(ROOT)}: standalone_builds and no "
|
||||
f"install/standalone/{path.name}")
|
||||
stray = sorted(
|
||||
entry["dest"] for entry in [*files, *omitted]
|
||||
if entry.get("core_folder") and entry.get("root") != "save"
|
||||
@@ -749,6 +754,38 @@ def _semantic_install_checks(path: Path, manifest: dict) -> list[str]:
|
||||
return out
|
||||
|
||||
|
||||
def _semantic_standalone_checks(path: Path, layouts: object) -> list[str]:
|
||||
"""A standalone layout file goes with its platform's list: the list
|
||||
names the same builds, and each [dest, sha1] item takes its download
|
||||
from a copy of that list."""
|
||||
where = path.relative_to(ROOT)
|
||||
if not isinstance(layouts, dict):
|
||||
return [f"{where}: not an object"]
|
||||
plat = layouts.get("platform")
|
||||
if path.stem != plat:
|
||||
return [f"{where}: platform {plat} in a file named {path.stem}"]
|
||||
listed = ROOT / "install" / f"{plat}.json"
|
||||
if not listed.is_file():
|
||||
return [f"{where}: no install/{plat}.json beside it"]
|
||||
manifest = json.loads(listed.read_text(encoding="utf-8"))
|
||||
out: list[str] = []
|
||||
if sorted(layouts.get("standalone_layouts", {})) != manifest.get("standalone_builds"):
|
||||
out.append(f"{where}: its builds differ from standalone_builds in {listed.name}")
|
||||
held = {
|
||||
copy.get("sha1")
|
||||
for entry in [*manifest.get("files", []), *(manifest.get("truth_files") or [])]
|
||||
for copy in [entry, *entry.get("alternatives", []), *entry.get("slot_choices", [])]
|
||||
}
|
||||
missing = sorted({
|
||||
item[1] for items in layouts.get("standalone_layouts", {}).values()
|
||||
for item in items if isinstance(item, list) and item[1] not in held
|
||||
})
|
||||
if missing:
|
||||
out.append(f"{where}: {len(missing)} sha1 no copy of {listed.name} carries "
|
||||
f"({missing[0]})")
|
||||
return out
|
||||
|
||||
|
||||
def _event_schema_errors() -> list[str]:
|
||||
"""install-events.schema.json is EVENT_KEYS written out, and a valid schema."""
|
||||
import generate_event_schema # noqa: PLC0415
|
||||
@@ -994,6 +1031,14 @@ def main() -> int:
|
||||
)
|
||||
)
|
||||
|
||||
standalone_paths = sorted((ROOT / "install" / "standalone").glob("*.json"))
|
||||
errors.extend(
|
||||
_validate_json_files(
|
||||
standalone_paths, "install-standalone.schema.json",
|
||||
_semantic_standalone_checks,
|
||||
)
|
||||
)
|
||||
|
||||
target_paths = sorted((ROOT / "install" / "targets").glob("*.json"))
|
||||
errors.extend(
|
||||
_validate_json_files(target_paths, "target-manifest.schema.json")
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
A/Enter Change B/Esc Back Left/Right Set ? Help
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set ? Help
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set ? Help
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A/Enter Change B/Esc Back Left/Right Set ? Help
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
A/Enter Change B/Esc Back Left/Right Set ? Help
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set ? Help
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set ? Help
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A/Enter Change B/Esc Back Left/Right Set ? Help
|
||||
Vendored
+82
@@ -490,6 +490,88 @@
|
||||
|
||||
|
||||
^[[0;1;35mA/Enter^[[0m Open ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-slot
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any --region
|
||||
^[[0;7;35m > One BIOS per console and region: yes --one-per-slot^[[0m
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config/retroarch/system^[[0m --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
^[[0;1m For which device^[[0m
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
^[[0;1m How^[[0m
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
^[[0;1m See^[[0m
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
^[[0;1;35mA/Enter^[[0m Change ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-standalone
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
^[[0;7;35m > Standalone version of it: no --standalone^[[0m
|
||||
Game data: kept --no-game-data
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config/retroarch/system^[[0m --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
^[[0;1m For which device^[[0m
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
^[[0;1m How^[[0m
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
^[[0;1m See^[[0m
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
^[[0;1;35mA/Enter^[[0m Change ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== device
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
|
||||
|
||||
|
||||
Vendored
+26
@@ -154,6 +154,32 @@
|
||||
Copy from: none
|
||||
^[[0;2m 1-8 of 18^[[0m
|
||||
^[[0;1;35mA^[[0m Open ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-slot
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any
|
||||
^[[0;7;35m > One BIOS per console and region: yes^[[0m
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config...ch/system^[[0m
|
||||
^[[0;2m 1-8 of 19^[[0m
|
||||
^[[0;1;35mA^[[0m Change ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-standalone
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
^[[0;7;35m > Standalone version of it: no^[[0m
|
||||
Game data: kept
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config...ch/system^[[0m
|
||||
^[[0;2m 1-8 of 19^[[0m
|
||||
^[[0;1;35mA^[[0m Change ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== device
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
|
||||
|
||||
|
||||
Vendored
+32
@@ -190,6 +190,38 @@
|
||||
Device: every board
|
||||
^[[0;2m 1-11 of 18^[[0m
|
||||
^[[0;1;35mA^[[0m Open ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-slot
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any
|
||||
^[[0;7;35m > One BIOS per console and region: yes^[[0m
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config...ch/system^[[0m
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
^[[0;1m For which device^[[0m
|
||||
^[[0;2m 1-11 of 19^[[0m
|
||||
^[[0;1;35mA^[[0m Change ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-standalone
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
^[[0;7;35m > Standalone version of it: no^[[0m
|
||||
Game data: kept
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config...ch/system^[[0m
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
^[[0;1m For which device^[[0m
|
||||
^[[0;2m 1-11 of 19^[[0m
|
||||
^[[0;1;35mA^[[0m Change ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== device
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
|
||||
|
||||
|
||||
Vendored
+50
@@ -298,6 +298,56 @@
|
||||
|
||||
|
||||
^[[0;1;35mA/Enter^[[0m Open ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-slot
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any --region
|
||||
^[[0;7;35m > One BIOS per console and region: yes --one-per-slot^[[0m
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config/retroarch/system^[[0m --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
^[[0;1m For which device^[[0m
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
^[[0;1m How^[[0m
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
^[[0;1m See^[[0m
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
^[[0;1;35mA/Enter^[[0m Change ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== change-standalone
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
|
||||
|
||||
^[[0;1m What to install^[[0m
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
^[[0;7;35m > Standalone version of it: no --standalone^[[0m
|
||||
Game data: kept --no-game-data
|
||||
^[[0;1m Where^[[0m
|
||||
BIOS folder: ^[[0;1m~/.config/retroarch/system^[[0m --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
^[[0;1m For which device^[[0m
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
^[[0;1m How^[[0m
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
^[[0;1m See^[[0m
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
^[[0;1;35mA/Enter^[[0m Change ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
|
||||
=== device
|
||||
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
|
||||
|
||||
|
||||
Vendored
+108
@@ -617,6 +617,114 @@
|
||||
|
||||
|
||||
A Open B Back Left/Right Set
|
||||
=== change-slot 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-slot 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-slot 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change B Back Left/Right Set
|
||||
=== change-standalone 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-standalone 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-standalone 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change B Back Left/Right Set
|
||||
=== device 40x12
|
||||
RetroBIOS: Device
|
||||
|
||||
|
||||
+108
@@ -617,6 +617,114 @@
|
||||
|
||||
|
||||
A Open B Back Left/Right Set
|
||||
=== change-slot 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-slot 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-slot 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change B Back Left/Right Set
|
||||
=== change-standalone 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-standalone 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-standalone 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change B Back Left/Right Set
|
||||
=== device 40x12
|
||||
RetroBIOS: Device
|
||||
|
||||
|
||||
+108
@@ -617,6 +617,114 @@
|
||||
|
||||
|
||||
A Open B Back Left/Right Set
|
||||
=== change-slot 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-slot 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-slot 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change B Back Left/Right Set
|
||||
=== change-standalone 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-standalone 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change B Back <> Set
|
||||
=== change-standalone 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change B Back Left/Right Set
|
||||
=== device 40x12
|
||||
RetroBIOS: Device
|
||||
|
||||
|
||||
Vendored
+108
@@ -592,6 +592,114 @@
|
||||
|
||||
|
||||
Enter Open Esc Back Left/Right Set ? Help
|
||||
=== change-slot 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
Enter Change Esc Back <> Set ? Help
|
||||
=== change-slot 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
Enter Change Esc Back <> Set ? Help
|
||||
=== change-slot 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
Enter Change Esc Back Left/Right Set ? Help
|
||||
=== change-standalone 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
Enter Change Esc Back <> Set ? Help
|
||||
=== change-standalone 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
Enter Change Esc Back <> Set ? Help
|
||||
=== change-standalone 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
Enter Change Esc Back Left/Right Set ? Help
|
||||
=== device 40x12
|
||||
RetroBIOS: Device
|
||||
|
||||
|
||||
Vendored
+108
@@ -646,6 +646,114 @@
|
||||
|
||||
|
||||
A Open R2 Back Left/Right Set
|
||||
=== change-slot 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change R2 Back <> Set
|
||||
=== change-slot 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change R2 Back <> Set
|
||||
=== change-slot 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change R2 Back Left/Right Set
|
||||
=== change-standalone 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
A Change R2 Back <> Set
|
||||
=== change-standalone 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
A Change R2 Back <> Set
|
||||
=== change-standalone 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
A Change R2 Back Left/Right Set
|
||||
=== device 40x12
|
||||
RetroBIOS: Device
|
||||
|
||||
|
||||
Vendored
+108
@@ -646,6 +646,114 @@
|
||||
|
||||
|
||||
Start Open B Back Left/Right Set
|
||||
=== change-slot 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
Start Change B Back <> Set
|
||||
=== change-slot 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
> One BIOS per console and region: yes
|
||||
Cores: all
|
||||
Emulators: all
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
Start Change B Back <> Set
|
||||
=== change-slot 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
> One BIOS per console and region: yes --one-per-slot
|
||||
Cores: all --core
|
||||
Emulators: all --emulator
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
Start Change B Back Left/Right Set
|
||||
=== change-standalone 40x12
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
1-8 of 19
|
||||
Start Change B Back <> Set
|
||||
=== change-standalone 40x15
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any
|
||||
Cores: all
|
||||
Emulators: pcsx_rearmed
|
||||
> Standalone version of it: no
|
||||
Game data: kept
|
||||
Where
|
||||
BIOS folder: ~/.config...ch/system
|
||||
Copy from: none
|
||||
From a pack: none
|
||||
For which device
|
||||
1-11 of 19
|
||||
Start Change B Back <> Set
|
||||
=== change-standalone 80x24
|
||||
RetroBIOS: Change
|
||||
|
||||
What to install
|
||||
Preferred regions: any --region
|
||||
Cores: all --core
|
||||
Emulators: pcsx_rearmed --emulator
|
||||
> Standalone version of it: no --standalone
|
||||
Game data: kept --no-game-data
|
||||
Where
|
||||
BIOS folder: ~/.config/retroarch/system --dest
|
||||
Copy from: none --from
|
||||
From a pack: none --from-pack
|
||||
For which device
|
||||
Device: every board --target
|
||||
Installed cores only: no (1 found) --installed-cores
|
||||
How
|
||||
Without the internet: no --offline
|
||||
Parallel downloads: 8 --jobs
|
||||
See
|
||||
Preview the file list --dry-run
|
||||
Show the command line
|
||||
|
||||
|
||||
Start Change B Back Left/Right Set
|
||||
=== device 40x12
|
||||
RetroBIOS: Device
|
||||
|
||||
|
||||
@@ -2480,6 +2480,25 @@ class EveryManifestEntryIsFetchable(unittest.TestCase):
|
||||
data = json.loads(path.read_text())
|
||||
install._validate_manifest(data, data["platform"])
|
||||
|
||||
def test_every_standalone_layout_goes_with_its_list(self):
|
||||
"""install/standalone/<platform>.json, which only --standalone
|
||||
reads: the installer accepts it against its own list, each item
|
||||
written whole has a source, and a list naming builds has its file."""
|
||||
listed = {path.stem: json.loads(path.read_text())
|
||||
for path in sorted((ROOT / "install").glob("*.json"))}
|
||||
layouts = sorted((ROOT / "install" / "standalone").glob("*.json"))
|
||||
self.assertEqual({path.stem for path in layouts},
|
||||
{plat for plat, data in listed.items()
|
||||
if data.get("standalone_builds")})
|
||||
for path in layouts:
|
||||
with self.subTest(layout=path.name):
|
||||
data = json.loads(path.read_text())
|
||||
kept = install._check_standalone_layouts(data, listed[path.stem], path.stem)
|
||||
orphans = [item["dest"] for items in kept.values() for item in items
|
||||
if isinstance(item, dict)
|
||||
and not item.get("repo_path") and not item.get("release_asset")]
|
||||
self.assertEqual(orphans, [])
|
||||
|
||||
def test_schema_and_installer_name_the_same_reasons(self):
|
||||
schema = json.loads(
|
||||
(ROOT / "schemas" / "install-manifest.schema.json").read_text()
|
||||
@@ -4546,6 +4565,37 @@ class EveryToolRefusesAFlagItWouldDrop(unittest.TestCase):
|
||||
["--offline", "--source", "truth", "--full-narrowings"],
|
||||
["--offline", "--source", "platform", "--full-narrowings"],
|
||||
],
|
||||
# The expert narrowings: what the pack builder refuses beside its
|
||||
# option of the same name, and a flag with no mode to apply it.
|
||||
"install.py": [
|
||||
["--json"],
|
||||
["--standalone"],
|
||||
["--emulator", "duckstation", "--standalone", "--region", "us"],
|
||||
["--emulator", "duckstation", "--standalone", "--one-per-slot"],
|
||||
["--one-per-slot", "--system", "sony-playstation"],
|
||||
["--one-per-slot", "--emulator", "duckstation"],
|
||||
["--one-per-slot", "--for-games"],
|
||||
["--one-per-slot", "--declared-only"],
|
||||
["--one-per-slot", "--list-systems"],
|
||||
["--source", "truth", "--system", "sony-playstation"],
|
||||
["--source", "truth", "--target", "switch"],
|
||||
["--source", "truth", "--one-per-slot"],
|
||||
["--source", "truth", "--tui"],
|
||||
["--source", "platform"],
|
||||
["--find", "0" * 40, "--system", "sony-playstation"],
|
||||
["--find", "0" * 40, "--one-per-slot"],
|
||||
["--find", "0" * 40, "--check"],
|
||||
["--find", "0" * 40, "--list-systems"],
|
||||
["--find", "0" * 40, "--json", "--events"],
|
||||
["--find", "0" * 40, "--json", "--pack", "tmp/"],
|
||||
["--find", "0" * 40, "--json", "--add-app"],
|
||||
["--find", "0" * 40, "--json", "--standalone-copies"],
|
||||
["--find", "0" * 40, "--json", "--romm-firmware", "{platform}/bios"],
|
||||
["--find", "0" * 40, "--json", "--from", "tmp"],
|
||||
["--find", "0" * 40, "--pack", "tmp/"],
|
||||
["--find", "not-a-hash"],
|
||||
["--find", "0" * 12],
|
||||
],
|
||||
}
|
||||
|
||||
def test_each_pair_is_refused(self):
|
||||
|
||||
@@ -7194,7 +7194,7 @@ class TheInstallerPageIsWrittenFromTheCode(unittest.TestCase):
|
||||
self.scratch.read_text(encoding="utf-8"))
|
||||
|
||||
def test_the_exit_codes_are_the_ones_install_py_exits_with(self):
|
||||
self.assertEqual(self.generator.exit_codes(), [0, 1, 2, 3, 130, 141])
|
||||
self.assertEqual(self.generator.exit_codes(), [0, 1, 2, 3, 4, 130, 141])
|
||||
|
||||
def test_a_missing_marker_stops_it(self):
|
||||
page = self.scratch.read_text(encoding="utf-8")
|
||||
|
||||
@@ -0,0 +1,723 @@
|
||||
"""The expert narrowings of the installer give what the pack builder gives.
|
||||
|
||||
`--one-per-slot`, `--emulator X --standalone` and `--source truth` replay,
|
||||
from the install list alone, the pack builder's options of the same name.
|
||||
The parity cases build the real packs in memory on every registered
|
||||
platform and compare each (dest, sha1) with what the installer keeps.
|
||||
`--find` picks one file by its hash, from the list.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import tests # noqa: F401 offline, scratch under tmp/, the suite's own cache
|
||||
|
||||
import contextlib
|
||||
import copy
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
sys.path.insert(0, str(REPO_ROOT / "scripts"))
|
||||
|
||||
_spec = importlib.util.spec_from_file_location("install", REPO_ROOT / "install.py")
|
||||
install = importlib.util.module_from_spec(_spec)
|
||||
_spec.loader.exec_module(install)
|
||||
|
||||
# Boards whose cores rank a slot differently from the whole list.
|
||||
TARGETS = (("retroarch", "switch"), ("batocera", "bcm2711"), ("retropie", "rpi4"),
|
||||
("emudeck", "steamos"), ("knulli", "h700"))
|
||||
|
||||
|
||||
class RealListParity(unittest.TestCase):
|
||||
"""Each option against the pack builder, every registered platform."""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
db_path = REPO_ROOT / "database.json"
|
||||
if not db_path.exists():
|
||||
raise unittest.SkipTest("database.json is not built")
|
||||
if sys.version_info < (3, 9):
|
||||
# The builder's floor: install.py alone keeps 3.8.
|
||||
raise unittest.SkipTest("generate_pack.py needs Python 3.9 or newer")
|
||||
import generate_pack as gp
|
||||
from common import (build_zip_contents_index, list_registered_platforms,
|
||||
load_emulator_profiles, load_platform_config)
|
||||
|
||||
cls.gp = gp
|
||||
cls.config = staticmethod(
|
||||
lambda plat: load_platform_config(plat, str(REPO_ROOT / "platforms")))
|
||||
cls.db = json.loads(db_path.read_text(encoding="utf-8"))
|
||||
cls.zip_contents = build_zip_contents_index(cls.db)
|
||||
cls.profiles = load_emulator_profiles(str(REPO_ROOT / "emulators"))
|
||||
cls.by_path = {entry["path"]: sha1 for sha1, entry in cls.db["files"].items()}
|
||||
cls.platforms = list_registered_platforms(str(REPO_ROOT / "platforms"))
|
||||
cls.manifests: dict[str, dict] = {}
|
||||
cls.layouts: dict[str, dict] = {}
|
||||
cls.baselines: dict[str, set[str]] = {}
|
||||
|
||||
def manifest(self, plat: str) -> dict:
|
||||
"""The list, its standalone layouts kept aside as the run writes them
|
||||
(install/standalone/<platform>.json)."""
|
||||
if plat not in self.manifests:
|
||||
self.layouts[plat] = {}
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
self.manifests[plat] = self.gp.generate_install_list(
|
||||
plat, str(REPO_ROOT / "platforms"), self.db, str(REPO_ROOT / "bios"),
|
||||
str(REPO_ROOT / "platforms" / "_registry.yml"),
|
||||
emulators_dir=str(REPO_ROOT / "emulators"),
|
||||
zip_contents=self.zip_contents, emu_profiles=self.profiles,
|
||||
offline=True, standalone_out=self.layouts[plat])
|
||||
return self.manifests[plat]
|
||||
|
||||
def packed(self, plat: str, **options) -> dict[str, str | None]:
|
||||
"""Each member of the platform pack, below its base, with its sha1,
|
||||
None for a member a data directory cache gave: the list carries the
|
||||
trees apart (data_directories), and a cache copy at a destination
|
||||
the list serves from the collection is no choice of either option."""
|
||||
base = self.config(plat).get("base_destination", "")
|
||||
record = self.gp.PackRecord()
|
||||
with contextlib.redirect_stdout(io.StringIO()), \
|
||||
contextlib.redirect_stderr(io.StringIO()):
|
||||
self.gp.generate_pack(
|
||||
plat, str(REPO_ROOT / "platforms"), self.db, str(REPO_ROOT / "bios"),
|
||||
str(REPO_ROOT / "tmp"), emulators_dir=str(REPO_ROOT / "emulators"),
|
||||
zip_contents=self.zip_contents, emu_profiles=self.profiles,
|
||||
offline=True, record=record, **options)
|
||||
prefix = f"{base}/" if base else ""
|
||||
return {(m[len(prefix):] if prefix and m.startswith(prefix) else m):
|
||||
self.by_path.get(record.sources.get(m)) for m in record.members}
|
||||
|
||||
def apart(self, plat: str) -> set[str]:
|
||||
"""The destinations where the pack built without any option already
|
||||
holds other bytes than the list (a data directory cache filling a
|
||||
platform entry, held by the pack alone): no option decides them."""
|
||||
if plat not in self.baselines:
|
||||
fold = str.lower if self.config(plat).get("case_insensitive_fs") else str
|
||||
packed = {fold(d): sha1 for d, sha1 in self.packed(plat).items()}
|
||||
self.baselines[plat] = {
|
||||
fold(f["dest"]) for f in self.manifest(plat)["files"]
|
||||
if not f.get("root") and packed.get(fold(f["dest"])) != f["sha1"]}
|
||||
return self.baselines[plat]
|
||||
|
||||
def assert_same(self, plat: str, files: list[dict], packed: dict) -> None:
|
||||
"""The installer's BIOS-tree files and the pack's members the list can
|
||||
serve, (dest, sha1) for (dest, sha1). A member the list cannot serve
|
||||
(a data tree, a note, a file it omits) is no file of either."""
|
||||
full = self.manifest(plat)
|
||||
fold = str.lower if self.config(plat).get("case_insensitive_fs") else str
|
||||
cached = {fold(d) for d, sha1 in packed.items() if sha1 is None}
|
||||
listed = {fold(f["dest"]) for f in [*full["files"], *full.get("truth_files", [])]
|
||||
if not f.get("root")} - cached - self.apart(plat)
|
||||
mine = {fold(f["dest"]): f["sha1"] for f in files
|
||||
if not f.get("root") and fold(f["dest"]) in listed}
|
||||
theirs = {fold(d): s for d, s in packed.items() if fold(d) in listed}
|
||||
self.assertEqual(mine, theirs)
|
||||
|
||||
def test_one_per_slot(self):
|
||||
dropped = 0
|
||||
for plat in self.platforms:
|
||||
with self.subTest(platform=plat):
|
||||
full = self.manifest(plat)
|
||||
files, _omitted = install.one_per_slot(full["files"], full["omitted_files"])
|
||||
dropped += len(full["files"]) - len(files)
|
||||
self.assert_same(plat, files, self.packed(plat, one_per_slot=True))
|
||||
# Real slots decided, not a rule that never drops anything.
|
||||
self.assertGreater(dropped, 0)
|
||||
|
||||
def test_one_per_slot_on_a_board(self):
|
||||
from common import load_target_config
|
||||
|
||||
for plat, target in TARGETS:
|
||||
with self.subTest(platform=plat, target=target):
|
||||
cores = sorted(load_target_config(plat, target, str(REPO_ROOT / "platforms")))
|
||||
full = self.manifest(plat)
|
||||
files, omitted = install.narrow_to_cores(full, cores, target=target)
|
||||
files, _omitted = install.one_per_slot(
|
||||
files, omitted, install.designated_cores(full, cores, target))
|
||||
self.assert_same(plat, files, self.packed(
|
||||
plat, one_per_slot=True, target_cores=set(cores), target_name=target))
|
||||
|
||||
def test_one_per_slot_with_installed_cores(self):
|
||||
"""--installed-cores ranks a slot by the cores found, as a pack built
|
||||
for exactly those cores (generate_pack target_cores) ranks it: the
|
||||
run passes the found cores as its reach (slot_reach)."""
|
||||
from common import load_target_config
|
||||
|
||||
for plat, target in (("retroarch", "switch"), ("retroarch", "playstation-psp")):
|
||||
with self.subTest(platform=plat, cores=target):
|
||||
found = sorted(load_target_config(plat, target, str(REPO_ROOT / "platforms")))
|
||||
full = self.manifest(plat)
|
||||
files, omitted = install.narrow_to_cores(full, found)
|
||||
files, _omitted = install.one_per_slot(
|
||||
files, omitted, install.designated_cores(full, found))
|
||||
self.assert_same(plat, files, self.packed(
|
||||
plat, one_per_slot=True, target_cores=set(found)))
|
||||
|
||||
def test_source_truth(self):
|
||||
for plat in self.platforms:
|
||||
with self.subTest(platform=plat):
|
||||
full = self.manifest(plat)
|
||||
files, _omitted = install.truth_lists(full, full["files"],
|
||||
full["omitted_files"])
|
||||
self.assert_same(plat, files, self.packed(plat, source="truth"))
|
||||
|
||||
def test_standalone(self):
|
||||
"""Each emulator with a standalone build: every file of the pack
|
||||
`--emulator X --standalone` builds, at its place with its bytes,
|
||||
and beside them only the platform's own files of its systems."""
|
||||
checked = 0
|
||||
for plat in self.platforms:
|
||||
full = self.manifest(plat)
|
||||
layouts = install._check_standalone_layouts(
|
||||
{"schema": 1, "platform": plat, "standalone_layouts": self.layouts[plat]},
|
||||
full, plat)
|
||||
self.assertEqual(sorted(layouts), full.get("standalone_builds", []))
|
||||
for profile in sorted(layouts):
|
||||
with self.subTest(platform=plat, emulator=profile):
|
||||
record = self.gp.PackRecord()
|
||||
with contextlib.redirect_stdout(io.StringIO()), \
|
||||
contextlib.redirect_stderr(io.StringIO()):
|
||||
self.gp.generate_emulator_pack(
|
||||
[profile], str(REPO_ROOT / "emulators"), self.db,
|
||||
str(REPO_ROOT / "bios"), str(REPO_ROOT / "tmp"),
|
||||
standalone=True, zip_contents=self.zip_contents,
|
||||
offline=True, record=record)
|
||||
files, omitted = install._narrow_to_emulators(
|
||||
[profile], full, plat, full["files"], full["omitted_files"])
|
||||
files, _omitted = install.standalone_layout(full, layouts, [profile],
|
||||
files, omitted)
|
||||
packed = {member: self.by_path[record.sources[member]]
|
||||
for member in record.files
|
||||
if record.sources.get(member) in self.by_path}
|
||||
installed = {entry["dest"]: entry["sha1"] for entry in files
|
||||
if not entry.get("root")}
|
||||
self.assertEqual({dest: installed.get(dest) for dest in packed}, packed)
|
||||
self.assertEqual(
|
||||
[entry["dest"] for entry in files
|
||||
if entry.get("cores") not in (None, [profile])], [])
|
||||
checked += 1
|
||||
self.assertGreater(checked, 0)
|
||||
|
||||
|
||||
def _copy(dest: str, body: bytes, cores: list[str] | None = None, **fields) -> dict:
|
||||
return {"dest": dest, "sha1": hashlib.sha1(body).hexdigest(),
|
||||
"sha256": hashlib.sha256(body).hexdigest(), "size": len(body),
|
||||
"repo_path": f"bios/Test/{dest}", "cores": cores, **fields}
|
||||
|
||||
|
||||
def _claims(**ranks: object) -> dict:
|
||||
return {name: {"ranks": rank if isinstance(rank, list) else [rank]}
|
||||
for name, rank in ranks.items()}
|
||||
|
||||
|
||||
def _slot(*keys: dict, groups: tuple = ("sony-playstation",)) -> dict:
|
||||
return {"groups": list(groups), "keys": list(keys)}
|
||||
|
||||
|
||||
class TheSlotRuleIsTheBuilders(unittest.TestCase):
|
||||
"""slot_drops against slot.resolve_slot_drops on the same claims."""
|
||||
|
||||
def drops(self, entries: list[dict], reach=None) -> set[str]:
|
||||
held = {entry["dest"] for entry in entries}
|
||||
return install.slot_drops(entries, held, reach)
|
||||
|
||||
def test_the_lowest_rank_stays(self):
|
||||
entries = [_copy("a.bin", b"a", slot=_slot(_claims(duckstation=10))),
|
||||
_copy("b.bin", b"b", slot=_slot(_claims(duckstation=5)))]
|
||||
self.assertEqual(self.drops(entries), {"a.bin"})
|
||||
|
||||
def test_an_unranked_candidate_keeps_every_file(self):
|
||||
entries = [_copy("a.bin", b"a", slot=_slot(_claims(duckstation=10))),
|
||||
_copy("b.bin", b"b", slot=_slot(_claims(pcsx=None)))]
|
||||
self.assertEqual(self.drops(entries), set())
|
||||
|
||||
def test_two_cores_ranking_one_file_differently_keep_it_open(self):
|
||||
entries = [_copy("a.bin", b"a", slot=_slot(_claims(duckstation=10, pcsx=1))),
|
||||
_copy("b.bin", b"b", slot=_slot(_claims(duckstation=5)))]
|
||||
self.assertEqual(self.drops(entries), set())
|
||||
# On a board without pcsx, DuckStation's order decides.
|
||||
self.assertEqual(self.drops(entries, {"duckstation"}), {"a.bin"})
|
||||
|
||||
def test_regions_split_a_slot(self):
|
||||
entries = [
|
||||
_copy("jp.bin", b"j", slot=_slot({"duckstation": {"ranks": [1],
|
||||
"regions": ["japan"]}})),
|
||||
_copy("us.bin", b"u", slot=_slot({"duckstation": {"ranks": [2],
|
||||
"regions": ["north-america"]}})),
|
||||
]
|
||||
self.assertEqual(self.drops(entries), set())
|
||||
|
||||
def test_a_file_listed_twice_in_a_group_ties_with_itself(self):
|
||||
entries = [_copy("a.bin", b"a", slot=_slot(
|
||||
_claims(px68k=1), groups=("x68000", "x68000"))),
|
||||
_copy("b.bin", b"b", slot=_slot(_claims(px68k=2), groups=("x68000",)))]
|
||||
self.assertEqual(self.drops(entries), set())
|
||||
|
||||
@unittest.skipIf(sys.version_info < (3, 9), "slot.py needs Python 3.9 or newer")
|
||||
def test_random_slots_against_the_builder(self):
|
||||
import random
|
||||
|
||||
import manifestselect
|
||||
import slot as slot_mod
|
||||
|
||||
rng = random.Random(7)
|
||||
for _round in range(400):
|
||||
entries, profiles = [], {}
|
||||
for index in range(rng.randint(2, 6)):
|
||||
name = f"f{index}.bin"
|
||||
for emulator in rng.sample(["ds", "pcsx", "beetle"], rng.randint(1, 2)):
|
||||
rank = rng.choice([None, 1, 2, 3])
|
||||
region = rng.choice([[], ["japan"]])
|
||||
group = rng.choice([None, "ipl", "font"])
|
||||
profiles.setdefault(emulator, {"files": []})["files"].append(
|
||||
{"name": name, "priority": rank, "region": region,
|
||||
**({"group": group} if group else {})})
|
||||
entries.append(name)
|
||||
reach = set(rng.sample(sorted(profiles), rng.randint(1, len(profiles))))
|
||||
groups = {"sys": [(name, name) for name in entries]}
|
||||
claims = slot_mod.slot_claims(profiles)
|
||||
index_ = slot_mod.build_slot_index({k: v for k, v in profiles.items()
|
||||
if k in reach})
|
||||
expected, _undecided = slot_mod.resolve_slot_drops(groups, index_, set(entries))
|
||||
fields = manifestselect._slot_fields(groups, claims)
|
||||
listed = [_copy(name, name.encode(), **({"slot": fields[name]}
|
||||
if name in fields else {}))
|
||||
for name in entries]
|
||||
self.assertEqual(self.drops(listed, reach), expected)
|
||||
|
||||
@unittest.skipIf(sys.version_info < (3, 9), "slot.py needs Python 3.9 or newer")
|
||||
def test_a_destination_two_groups_name_apart(self):
|
||||
"""One destination a platform declares under one name and a core
|
||||
under another: each group looks its own name up, as the builder
|
||||
does (slot.lookup_slot per member), whatever cores the board runs."""
|
||||
import random
|
||||
|
||||
import manifestselect
|
||||
import slot as slot_mod
|
||||
|
||||
rng = random.Random(11)
|
||||
for _round in range(400):
|
||||
profiles: dict = {}
|
||||
groups: dict[str, list[tuple[str, str]]] = {"sysa": [], "sysb": []}
|
||||
dests = [f"sub/f{index}.bin" for index in range(rng.randint(2, 5))]
|
||||
for index, dest in enumerate(dests):
|
||||
names = {"sysa": f"a{index}.bin",
|
||||
"sysb": rng.choice([f"a{index}.bin", f"b{index}.bin"])}
|
||||
for group, name in names.items():
|
||||
groups[group].append((dest, name))
|
||||
for name in set(names.values()):
|
||||
for emulator in rng.sample(["ds", "pcsx"], rng.randint(1, 2)):
|
||||
profiles.setdefault(emulator, {"files": []})["files"].append(
|
||||
{"name": name, "priority": rng.choice([None, 1, 2, 3])})
|
||||
reach = set(rng.sample(sorted(profiles), rng.randint(1, len(profiles))))
|
||||
index_ = slot_mod.build_slot_index({k: v for k, v in profiles.items()
|
||||
if k in reach})
|
||||
expected, _undecided = slot_mod.resolve_slot_drops(groups, index_, set(dests))
|
||||
fields = manifestselect._slot_fields(groups, slot_mod.slot_claims(profiles))
|
||||
listed = [_copy(dest, dest.encode(), **({"slot": fields[dest]}
|
||||
if dest in fields else {}))
|
||||
for dest in dests]
|
||||
with self.subTest(round=_round):
|
||||
self.assertEqual(self.drops(listed, reach), expected)
|
||||
|
||||
|
||||
class Lists(unittest.TestCase):
|
||||
"""A list written for the runs below, in tmp/."""
|
||||
|
||||
def setUp(self):
|
||||
scratch = tempfile.TemporaryDirectory(dir=REPO_ROOT / "tmp")
|
||||
self.addCleanup(scratch.cleanup)
|
||||
self.root = Path(scratch.name)
|
||||
self.dest = self.root / "bios"
|
||||
|
||||
def write(self, manifest: dict, layouts: dict | None = None) -> Path:
|
||||
"""The list, and its standalone layouts beside it where the
|
||||
repository keeps them, unless layouts is {}."""
|
||||
path = self.root / "retroarch.json"
|
||||
path.write_text(json.dumps(manifest), encoding="utf-8")
|
||||
beside = self.root / "standalone" / "retroarch.json"
|
||||
if layouts == {}:
|
||||
if beside.exists():
|
||||
beside.unlink()
|
||||
else:
|
||||
beside.parent.mkdir(exist_ok=True)
|
||||
beside.write_text(json.dumps(layouts or LAYOUTS), encoding="utf-8")
|
||||
return path
|
||||
|
||||
def run_install(self, manifest: dict, *argv: str, layouts: dict | None = None,
|
||||
env: dict | None = None) -> subprocess.CompletedProcess:
|
||||
env = dict(os.environ, RETROBIOS_OS="linux", RETROBIOS_OFFLINE="1", **(env or {}))
|
||||
return subprocess.run(
|
||||
[sys.executable, str(REPO_ROOT / "install.py"), "--platform", "retroarch",
|
||||
"--dest", str(self.dest), "--manifest", str(self.write(manifest, layouts)),
|
||||
"--no-input", *argv],
|
||||
capture_output=True, text=True, timeout=120, env=env, check=False)
|
||||
|
||||
|
||||
LIST = {
|
||||
"manifest_version": 2, "platform": "retroarch", "source": "full", "regions": [],
|
||||
"categorized": True, "slot_fields": True,
|
||||
"core_names": {"pcsx_rearmed": [], "duckstation": []},
|
||||
"system_cores": {"sony-playstation": ["duckstation", "pcsx_rearmed"]},
|
||||
"files": [
|
||||
_copy("scph1001.bin", b"one", systems=["sony-playstation"],
|
||||
slot=_slot(_claims(duckstation=10))),
|
||||
_copy("scph5501.bin", b"two", systems=["sony-playstation"],
|
||||
slot=_slot(_claims(duckstation=5)), md5=hashlib.md5(b"two").hexdigest()),
|
||||
_copy("pcsx/extra.bin", b"extra", ["pcsx_rearmed"], systems=["sony-playstation"],
|
||||
truth=False),
|
||||
_copy("copy.bin", b"two", systems=["sony-playstation"],
|
||||
md5=hashlib.md5(b"two").hexdigest()),
|
||||
_copy("x.bin", b"crc-a", crc32="aaaaaaaa"),
|
||||
_copy("y.bin", b"crc-b", crc32="aaaaaaaa"),
|
||||
],
|
||||
"omitted_files": [],
|
||||
"truth_files": [_copy("ds/only.bin", b"truth", ["duckstation"])],
|
||||
"truth_omitted": [],
|
||||
"standalone_builds": ["duckstation"],
|
||||
}
|
||||
LAYOUTS = {"schema": 1, "platform": "retroarch", "standalone_layouts": {
|
||||
"duckstation": [["ds/scph5501.bin", hashlib.sha1(b"two").hexdigest()]]}}
|
||||
|
||||
|
||||
class FindByHash(Lists):
|
||||
"""--find, each kind of hash, with --json and without."""
|
||||
|
||||
def found(self, value: str) -> dict:
|
||||
proc = self.run_install(LIST, "--find", value, "--json")
|
||||
self.assertIn(proc.returncode, (0, 4), proc.stderr)
|
||||
return json.loads(proc.stdout)
|
||||
|
||||
def test_each_kind(self):
|
||||
two = LIST["files"][1]
|
||||
for kind in ("sha1", "sha256", "md5"):
|
||||
with self.subTest(kind=kind):
|
||||
said = self.found(two[kind].upper())
|
||||
self.assertEqual((said["kind"], said["result"]), (kind, "found"))
|
||||
# One content at two destinations: both are the file.
|
||||
self.assertEqual([m["dest"] for m in said["matches"]],
|
||||
["scph5501.bin", "copy.bin"])
|
||||
said = self.found("aaaaaaaa")
|
||||
self.assertEqual((said["kind"], said["result"]), ("crc32", "ambiguous"))
|
||||
|
||||
def test_the_shape_is_stable(self):
|
||||
said = self.found(LIST["files"][1]["sha1"])
|
||||
self.assertEqual(list(said), ["schema", "platform", "hash", "kind", "result",
|
||||
"matches"])
|
||||
self.assertEqual(said["schema"], 1)
|
||||
# Every key in every match, null where the list records none: the
|
||||
# copy at scph5501.bin has an md5 and no crc32.
|
||||
for match in said["matches"]:
|
||||
self.assertEqual(list(match), ["dest", "root", "sha1", "sha256", "md5", "crc32",
|
||||
"size", "systems", "cores"])
|
||||
self.assertIsNone(match["crc32"])
|
||||
self.assertIsNone(match["root"])
|
||||
crc = self.found(LIST["files"][4]["sha1"])["matches"][0]
|
||||
self.assertEqual((crc["md5"], crc["crc32"], crc["systems"]), (None, "aaaaaaaa", None))
|
||||
|
||||
def test_a_hash_with_no_one_file_has_its_own_code(self):
|
||||
"""unknown, ambiguous and unrecorded end on 4, never on the 2 of an
|
||||
option refused, so a script can tell a typo from a missing file."""
|
||||
bare = copy.deepcopy(LIST)
|
||||
for entry in bare["files"]:
|
||||
entry.pop("md5", None)
|
||||
for manifest, value in ((LIST, "0" * 40), (LIST, "aaaaaaaa"), (bare, "1" * 32)):
|
||||
for json_too in ((), ("--json",)):
|
||||
with self.subTest(value=value, json=bool(json_too)):
|
||||
proc = self.run_install(manifest, "--find", value, "--dry-run"
|
||||
if not json_too else "--json")
|
||||
self.assertEqual(proc.returncode, 4, proc.stdout + proc.stderr)
|
||||
typo = self.run_install(LIST, "--find", "0" * 39)
|
||||
self.assertEqual(typo.returncode, 2)
|
||||
|
||||
def test_the_options_a_find_skips_are_refused(self):
|
||||
sha1 = LIST["files"][0]["sha1"]
|
||||
for extra in (["--pack", str(self.root / "out") + "/"], ["--add-app"],
|
||||
["--standalone-copies"], ["--romm-firmware", "{platform}/bios"],
|
||||
["--from", str(self.root)]):
|
||||
for json_too in ((), ("--json",)):
|
||||
with self.subTest(extra=extra, json=bool(json_too)):
|
||||
proc = self.run_install(LIST, "--find", sha1, *json_too, *extra)
|
||||
self.assertEqual(proc.returncode, 2, proc.stdout + proc.stderr)
|
||||
self.assertIn(f"which {extra[0]} does not apply to", proc.stderr)
|
||||
self.assertEqual(proc.stdout.strip(), "")
|
||||
|
||||
def test_unknown_ambiguous_and_unrecorded(self):
|
||||
unknown = self.run_install(LIST, "--find", "0" * 40, "--json")
|
||||
self.assertEqual(unknown.returncode, 4)
|
||||
self.assertEqual(json.loads(unknown.stdout)["result"], "unknown")
|
||||
for value, words in (("0" * 40, "no file of the retroarch list has the sha1"),
|
||||
("aaaaaaaa", "2 files of the retroarch list have the crc32")):
|
||||
with self.subTest(value=value):
|
||||
proc = self.run_install(LIST, "--find", value, "--dry-run")
|
||||
self.assertEqual(proc.returncode, 4, proc.stdout + proc.stderr)
|
||||
self.assertIn(words, proc.stderr)
|
||||
bare = copy.deepcopy(LIST)
|
||||
for entry in bare["files"]:
|
||||
entry.pop("md5", None)
|
||||
proc = self.run_install(bare, "--find", "1" * 32, "--json")
|
||||
self.assertEqual(json.loads(proc.stdout)["result"], "unrecorded")
|
||||
|
||||
def test_without_json_it_names_the_file_and_plans_it_alone(self):
|
||||
sha1 = LIST["files"][0]["sha1"]
|
||||
proc = self.run_install(LIST, "--find", sha1, "--dry-run")
|
||||
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
|
||||
self.assertIn(f"{sha1} is scph1001.bin", proc.stdout)
|
||||
self.assertNotIn("scph5501.bin", proc.stdout)
|
||||
|
||||
|
||||
class ExpertRuns(Lists):
|
||||
"""The options on a run, and the lists that cannot apply them."""
|
||||
|
||||
def plan(self, manifest: dict, *argv: str) -> str:
|
||||
proc = self.run_install(manifest, "--dry-run", "--verbose", *argv)
|
||||
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
|
||||
return proc.stdout
|
||||
|
||||
def test_each_option_narrows_the_run(self):
|
||||
said = self.plan(LIST, "--one-per-slot")
|
||||
self.assertIn("One BIOS per console and region: 6 to 5 files", said)
|
||||
said = self.plan(LIST, "--source", "truth")
|
||||
self.assertIn("What the emulator profiles prove is read: 6 to 6 files", said)
|
||||
self.assertIn("ds/only.bin", said)
|
||||
self.assertNotIn("pcsx/extra.bin", said)
|
||||
said = self.plan(LIST, "--emulator", "duckstation", "--standalone")
|
||||
self.assertIn("ds/scph5501.bin", said)
|
||||
|
||||
def test_installed_cores_rank_a_slot_by_themselves(self):
|
||||
"""With pcsx_rearmed ranking scph1001 first and DuckStation last, the
|
||||
whole list cannot decide the slot. Only DuckStation installed, its
|
||||
order decides, as a pack built for it alone does."""
|
||||
ranked = copy.deepcopy(LIST)
|
||||
ranked["files"][0]["slot"] = _slot(_claims(duckstation=10, pcsx_rearmed=1))
|
||||
ranked["files"][1]["slot"] = _slot(_claims(duckstation=5, pcsx_rearmed=2))
|
||||
cores = self.root / "cores"
|
||||
cores.mkdir()
|
||||
(cores / "duckstation_libretro.so").write_bytes(b"")
|
||||
whole = self.plan(ranked, "--one-per-slot")
|
||||
self.assertIn("scph1001.bin", whole)
|
||||
installed = self.plan(ranked, "--one-per-slot", "--cores-dir", str(cores))
|
||||
self.assertNotIn("scph1001.bin", installed)
|
||||
self.assertIn("scph5501.bin", installed)
|
||||
|
||||
def test_a_list_without_the_fields_is_refused(self):
|
||||
older = copy.deepcopy(LIST)
|
||||
for field in ("slot_fields", "truth_files", "truth_omitted", "standalone_builds"):
|
||||
older.pop(field)
|
||||
for argv, words in (
|
||||
(["--one-per-slot"], "which --one-per-slot needs"),
|
||||
(["--source", "truth"], "which --source truth needs"),
|
||||
(["--emulator", "duckstation", "--standalone"], "which --standalone needs"),
|
||||
):
|
||||
with self.subTest(argv=argv):
|
||||
proc = self.run_install(older, "--dry-run", *argv)
|
||||
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
|
||||
self.assertIn(words, proc.stderr)
|
||||
|
||||
def test_an_emulator_without_a_standalone_build_is_refused(self):
|
||||
proc = self.run_install(LIST, "--dry-run", "--emulator", "pcsx_rearmed",
|
||||
"--standalone")
|
||||
self.assertEqual(proc.returncode, 2, proc.stdout + proc.stderr)
|
||||
self.assertIn("pcsx_rearmed has no standalone build", proc.stderr)
|
||||
|
||||
def test_a_malformed_field_is_refused_at_the_boundary(self):
|
||||
for field, value in (("slot", {"groups": ["s"], "keys": [{"ds": {"ranks": ["1"]}}]}),
|
||||
("truth", True)):
|
||||
with self.subTest(field=field):
|
||||
bad = copy.deepcopy(LIST)
|
||||
bad["files"][0][field] = value
|
||||
with self.assertRaises(ValueError):
|
||||
install._validate_manifest(bad, "retroarch")
|
||||
install._validate_manifest(copy.deepcopy(LIST), "retroarch")
|
||||
# A claim that is no object says the list is not valid, never TypeError.
|
||||
for claim in (None, 3, True, ["ranks"]):
|
||||
with self.subTest(claim=claim):
|
||||
bad = copy.deepcopy(LIST)
|
||||
bad["files"][0]["slot"] = {"groups": ["s"], "keys": [{"ds": claim}]}
|
||||
with self.assertRaises(ValueError):
|
||||
install._validate_manifest(bad, "retroarch")
|
||||
# A truth-only omission is checked as any omission.
|
||||
omission = {"dest": "gone.bin", "name": "gone.bin", "system": "s", "required": True,
|
||||
"reason": "not_found", "cores": None}
|
||||
for field, value in (("alternatives", [{"cores": "ds"}]), ("slot", {"groups": []}),
|
||||
("truth", True), ("systems", "s")):
|
||||
with self.subTest(truth_omitted=field):
|
||||
bad = copy.deepcopy(LIST)
|
||||
bad["truth_omitted"] = [{**omission, field: value}]
|
||||
with self.assertRaises(ValueError):
|
||||
install._validate_manifest(bad, "retroarch")
|
||||
good = copy.deepcopy(LIST)
|
||||
good["truth_omitted"] = [omission]
|
||||
install._validate_manifest(good, "retroarch")
|
||||
for broken in ([["../x.bin", LAYOUTS["standalone_layouts"]["duckstation"][0][1]]],
|
||||
[["ds/x.bin", "0" * 40]]):
|
||||
with self.subTest(layout=broken):
|
||||
with self.assertRaises(ValueError):
|
||||
install._check_standalone_layouts(
|
||||
{**LAYOUTS, "standalone_layouts": {"duckstation": broken}},
|
||||
LIST, "retroarch")
|
||||
with self.assertRaises(ValueError):
|
||||
install._check_standalone_layouts({**LAYOUTS, "standalone_layouts": {}},
|
||||
LIST, "retroarch")
|
||||
|
||||
def test_a_null_truth_list_reads_as_none(self):
|
||||
"""truth_files: null is no list: --standalone takes its copies from
|
||||
the files alone, the schema check too, and --source truth refuses
|
||||
the list as one that records nothing of it."""
|
||||
nulled = {**copy.deepcopy(LIST), "truth_files": None}
|
||||
del nulled["truth_omitted"]
|
||||
install._validate_manifest(copy.deepcopy(nulled), "retroarch")
|
||||
entries = install.standalone_entries(nulled, LAYOUTS["standalone_layouts"],
|
||||
"duckstation")
|
||||
self.assertEqual([entry["dest"] for entry in entries], ["ds/scph5501.bin"])
|
||||
said = self.plan(nulled, "--emulator", "duckstation", "--standalone")
|
||||
self.assertIn("ds/scph5501.bin", said)
|
||||
proc = self.run_install(nulled, "--dry-run", "--source", "truth")
|
||||
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
|
||||
self.assertIn("which --source truth needs", proc.stderr)
|
||||
|
||||
@unittest.skipIf(sys.version_info < (3, 9), "validate_schemas.py needs Python 3.9 or newer")
|
||||
def test_the_schema_check_reads_a_null_truth_list(self):
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import validate_schemas
|
||||
except ImportError as exc:
|
||||
self.skipTest(f"validate_schemas needs jsonschema: {exc}")
|
||||
|
||||
with tempfile.TemporaryDirectory(dir=REPO_ROOT / "tmp") as root:
|
||||
(Path(root) / "install" / "standalone").mkdir(parents=True)
|
||||
(Path(root) / "install" / "retroarch.json").write_text(
|
||||
json.dumps({**LIST, "truth_files": None}), encoding="utf-8")
|
||||
path = Path(root) / "install" / "standalone" / "retroarch.json"
|
||||
path.write_text(json.dumps(LAYOUTS), encoding="utf-8")
|
||||
with mock.patch.object(validate_schemas, "ROOT", Path(root)):
|
||||
self.assertEqual(validate_schemas._semantic_standalone_checks(path, LAYOUTS),
|
||||
[])
|
||||
|
||||
def test_a_layout_file_missing_or_unreachable_refuses_on_one_line(self):
|
||||
"""Only --standalone reads the file: a list without it beside still
|
||||
installs everything else, and --standalone stops on one line."""
|
||||
cases = (
|
||||
({}, {"RETROBIOS_INSTALL_OFFLINE": "1"}, "makes no network request"),
|
||||
({"schema": 1, "platform": "recalbox", "standalone_layouts": {}}, {},
|
||||
"not valid"),
|
||||
)
|
||||
for layouts, env, words in cases:
|
||||
with self.subTest(words=words):
|
||||
proc = self.run_install(LIST, "--dry-run", "--emulator", "duckstation",
|
||||
"--standalone", layouts=layouts, env=env)
|
||||
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
|
||||
said = [line for line in proc.stderr.splitlines() if line.strip()]
|
||||
self.assertEqual(len(said), 1, said)
|
||||
self.assertIn("--standalone needs", said[0])
|
||||
self.assertIn(words, said[0])
|
||||
proc = self.run_install(LIST, "--dry-run", "--emulator", "duckstation",
|
||||
layouts={}, env={"RETROBIOS_INSTALL_OFFLINE": "1"})
|
||||
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
|
||||
|
||||
def test_a_layout_file_missing_from_the_server(self):
|
||||
import http.server
|
||||
import threading
|
||||
|
||||
served = self.root / "served"
|
||||
(served / "install").mkdir(parents=True)
|
||||
|
||||
class Quiet(http.server.SimpleHTTPRequestHandler):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, directory=str(served), **kwargs)
|
||||
|
||||
def log_message(self, *_args):
|
||||
return
|
||||
|
||||
server = http.server.ThreadingHTTPServer(("127.0.0.1", 0), Quiet)
|
||||
threading.Thread(target=server.serve_forever, daemon=True).start()
|
||||
self.addCleanup(server.server_close)
|
||||
self.addCleanup(server.shutdown)
|
||||
base = f"http://127.0.0.1:{server.server_address[1]}"
|
||||
proc = self.run_install(LIST, "--dry-run", "--emulator", "duckstation", "--standalone",
|
||||
layouts={}, env={"RETROBIOS_BASE_URL": base})
|
||||
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
|
||||
said = [line for line in proc.stderr.splitlines() if line.strip()]
|
||||
self.assertEqual(said, [f"Error: --standalone needs {base}/install/standalone/"
|
||||
"retroarch.json, which could not be read (HTTP 404)."])
|
||||
|
||||
|
||||
class ChangeRows(unittest.TestCase):
|
||||
"""The two rows of Change and the flags they give the runs."""
|
||||
|
||||
def state(self, manifest: dict) -> install.TuiState:
|
||||
state = install.TuiState(os_type="linux")
|
||||
state.platform, state.dest = "retroarch", Path("/x/bios")
|
||||
state.manifest, state.manifest_for = manifest, "retroarch"
|
||||
state.stack = ["plan", "options"]
|
||||
return state
|
||||
|
||||
def actions(self, state: install.TuiState) -> list[str]:
|
||||
return [row.action for row in install.tui_rows(state)]
|
||||
|
||||
def test_one_per_slot_on_the_whole_list(self):
|
||||
state = self.state(LIST)
|
||||
self.assertIn("slot", self.actions(state))
|
||||
state.focus["options"] = self.actions(state).index("slot")
|
||||
install.tui_update(state, install.TuiKey("enter"))
|
||||
self.assertIn(("--one-per-slot", None), install.tui_flags(state))
|
||||
# A choice of emulator narrows the list first: the row and its flag go.
|
||||
state.emulators = ["duckstation"]
|
||||
self.assertNotIn("slot", self.actions(state))
|
||||
self.assertNotIn(("--one-per-slot", None), install.tui_flags(state))
|
||||
|
||||
def test_standalone_when_the_emulator_has_a_build(self):
|
||||
state = self.state(LIST)
|
||||
self.assertNotIn("standalone", self.actions(state))
|
||||
state.emulators = ["duckstation"]
|
||||
state.focus["options"] = self.actions(state).index("standalone")
|
||||
install.tui_update(state, install.TuiKey("enter"))
|
||||
self.assertIn(("--standalone", None), install.tui_flags(state))
|
||||
state.emulators = ["pcsx_rearmed"]
|
||||
self.assertNotIn("standalone", self.actions(state))
|
||||
self.assertNotIn(("--standalone", None), install.tui_flags(state))
|
||||
|
||||
def test_standalone_only_beside_no_other_narrowing(self):
|
||||
"""The CLI refuses --standalone beside --region, --core and
|
||||
--system: the row is not offered with one, and a choice made after
|
||||
it turns it off, said in one line."""
|
||||
for choice in ("regions", "cores", "systems"):
|
||||
with self.subTest(choice=choice):
|
||||
state = self.state(LIST)
|
||||
state.emulators = ["duckstation"]
|
||||
state.standalone = True
|
||||
self.assertIn(("--standalone", None), install.tui_flags(state))
|
||||
if choice == "regions":
|
||||
state.regions = ["japan"]
|
||||
elif choice == "cores":
|
||||
state.cores = ["duckstation"]
|
||||
else:
|
||||
state.cli_systems = ["sony-playstation"]
|
||||
self.assertNotIn("standalone", self.actions(state))
|
||||
self.assertNotIn(("--standalone", None), install.tui_flags(state))
|
||||
install.tui_update(state, install.TuiKey("down"))
|
||||
self.assertFalse(state.standalone)
|
||||
self.assertEqual(state.status, install.TUI_STANDALONE_OFF)
|
||||
argv = install.tui_argv(state, "install", "python", "install.py")
|
||||
args = install.build_parser().parse_args(argv[2:])
|
||||
self.assertFalse(args.standalone)
|
||||
|
||||
def test_no_row_on_a_list_without_the_fields(self):
|
||||
older = {key: value for key, value in LIST.items()
|
||||
if key not in ("slot_fields", "standalone_builds")}
|
||||
state = self.state(older)
|
||||
state.emulators = ["duckstation"]
|
||||
self.assertFalse({"slot", "standalone"} & set(self.actions(state)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -999,6 +999,18 @@ def golden_states() -> dict:
|
||||
options.focus["options"] = 1
|
||||
options.regions = ["north-america", "japan"]
|
||||
states["change"] = options
|
||||
slots = checked_state()
|
||||
slots.manifest = {**MANIFEST, "slot_fields": True}
|
||||
slots.stack.append("options")
|
||||
slots.one_per_slot = True
|
||||
option_focus(slots, "slot")
|
||||
states["change-slot"] = slots
|
||||
standalone = checked_state()
|
||||
standalone.manifest = {**MANIFEST, "standalone_builds": ["pcsx_rearmed"]}
|
||||
standalone.stack.append("options")
|
||||
standalone.emulators = ["pcsx_rearmed"]
|
||||
option_focus(standalone, "standalone")
|
||||
states["change-standalone"] = standalone
|
||||
states["device"] = device_state()
|
||||
emulators = checked_state()
|
||||
emulators.stack += ["options", "emulators"]
|
||||
@@ -15312,6 +15324,9 @@ SCREEN_WORDS = {
|
||||
# rows for Emulators, a pack, the device and the internet, and the five
|
||||
# headings that group them, the intro sentence they replace dropped.
|
||||
"change": (32, 42, 72, 72),
|
||||
# Change with an expert row: one BIOS per console and region on a list
|
||||
# that records its slots, or the standalone build of the emulator chosen.
|
||||
"change-slot": (34, 44, 78, 78), "change-standalone": (32, 42, 76, 76),
|
||||
# A list of boards and one of emulators, each with the line that says
|
||||
# what the choice does and the gloss of "board".
|
||||
"device": (35, 35, 33, 33), "emulators": (29, 29, 27, 27),
|
||||
|
||||
@@ -1267,6 +1267,54 @@ The questions are asked only when standard input is a terminal. Piped,
|
||||
scripted or run with `--no-input`, the installer asks nothing and installs
|
||||
what the options name, everything by default.
|
||||
|
||||
### One level further { #one-level-further }
|
||||
|
||||
Four options sit below the default path, on the Change screen and as flags.
|
||||
Each gives what the pack builder's option of the same name gives, and
|
||||
`tests/test_install_expert.py` compares the two, (dest, sha1) for (dest,
|
||||
sha1), on the real list of every registered platform.
|
||||
|
||||
- [`--one-per-slot`](#option-one-per-slot) keeps one BIOS per console and
|
||||
region: the one the emulators' own search order ranks first. A slot is a
|
||||
system and the regions the code selects the file for, so the Japanese and
|
||||
the American PlayStation BIOS never compete. Change offers it as
|
||||
**One BIOS per console and region** while no system, emulator or game
|
||||
choice narrows the list.
|
||||
- [`--standalone`](#option-standalone), with `--emulator`, installs the
|
||||
emulator's standalone build in place of its core's layout. Change shows
|
||||
**Standalone version of it** once an emulator with such a build is ticked.
|
||||
The layouts live apart, in `install/standalone/<platform>.json`, read only
|
||||
by a run given `--standalone`: beside `--manifest FILE` when a
|
||||
`standalone/` folder holds it, else downloaded as the list is. Missing,
|
||||
unreachable or invalid, the run stops on one line with code 1.
|
||||
- [`--source truth`](#option-source) keeps only what the emulator profiles
|
||||
prove a core reads, the platform's own declarations aside.
|
||||
- [`--find HASH`](#option-find) installs the one BIOS with that content.
|
||||
|
||||
`--find` with `--json` prints, for each platform, one line:
|
||||
|
||||
```json
|
||||
{"schema": 1, "platform": "retroarch", "hash": "<the hash, lower case>",
|
||||
"kind": "sha1", "result": "found",
|
||||
"matches": [{"dest": "scph5501.bin", "root": null, "sha1": "...",
|
||||
"sha256": "...", "md5": null, "crc32": null, "size": 524288,
|
||||
"systems": ["sony-playstation"], "cores": null}]}
|
||||
```
|
||||
|
||||
`kind` is `sha1`, `sha256`, `md5` or `crc32`, read from the length.
|
||||
`result` is `found` (one content), `ambiguous` (two contents share the
|
||||
hash), `unknown`, or `unrecorded` when the list records no hash of that
|
||||
kind. Every match carries every key above, `null` where the list records
|
||||
none. New keys may come, existing ones keep their meaning. The published
|
||||
lists carry no md5 and no crc32 yet, so those two kinds answer `unrecorded`
|
||||
until they do. A `result` other than `found` ends on code 4, with or without
|
||||
`--json`.
|
||||
|
||||
A list published before these options lacks what they read, and the run
|
||||
stops on it with code 1 rather than install the whole list. None of them is
|
||||
kept in the [install record](#the-install-record): a later run without the
|
||||
option takes the recorded choice whole.
|
||||
|
||||
## Options
|
||||
|
||||
<!-- generated: options -->
|
||||
@@ -1289,6 +1337,11 @@ what the options name, everything by default.
|
||||
| <span id="option-all-files"></span>`--all-files` | The whole list, even when the card holds games. A run that asks nothing (`--yes`, `--no-input`, `--events`) otherwise installs what the card's games need, the plan's first choice. See [For the games on this card](#for-the-games-on-this-card) |
|
||||
| <span id="option-no-game-data"></span>`--no-game-data` | Leave out game data (a game's own files, not firmware) and install the firmware only. What it leaves out is named. See [Firmware without game data](#firmware-without-game-data) |
|
||||
| <span id="option-declared-only"></span>`--declared-only` | Keep only the files the platform's own list names (`cores: null` in the manifest), not the extra files cores load. With `--check`, the answer is about the list the platform itself checks. Refused with `--core`, the listings it does not change, `--standalone-copies` and `--tui` |
|
||||
| <span id="option-one-per-slot"></span>`--one-per-slot` | Keep one BIOS per console and region, the one the emulators' own search order (`priority:`, lower first) ranks first, as `generate_pack.py --one-per-slot` does. A slot with an unranked candidate, or a candidate two cores rank apart, keeps all of them. Decided over the whole list, by the board's cores on a board: refused with `--system`, `--emulator`, `--for-games`, `--declared-only` and the listings. See [One level further](#one-level-further) |
|
||||
| <span id="option-standalone"></span>`--standalone` | With `--emulator`: that emulator's standalone build, at the paths it reads, beside the platform's own BIOS of its systems, as `generate_pack.py --emulator NAME --standalone` packs it. The layouts come from `install/standalone/<platform>.json`, fetched only for this option. An emulator without a standalone build is refused, and so are `--region`, `--one-per-slot`, `--core` and `--system` beside it |
|
||||
| <span id="option-source"></span>`--source SOURCE` | `truth`: only what the emulator profiles prove a core reads, as `generate_pack.py --source truth` packs it. `full`, the default, is the platform's list and what its cores read. `truth` takes no other choice, opens no full screen, and is refused on a list published before it |
|
||||
| <span id="option-find"></span>`--find HASH` | Install the one BIOS of the list with this content: a sha1 or sha256 always, an md5 or crc32 where the list records it. A content at several destinations is installed at each. A hash two contents share is named and refused, as is one the list lacks, code 4. The published lists carry no md5 and no crc32 yet: those kinds answer that the list records none. Takes no other choice, and refuses `--pack`, `--add-app`, `--standalone-copies`, `--romm-firmware` and `--from` |
|
||||
| <span id="option-json"></span>`--json` | With `--find`: print the matches as one JSON object per platform and install nothing. The shape is in [One level further](#one-level-further). Exit code 0 when found, 4 otherwise |
|
||||
| <span id="option-list-systems"></span>`--list-systems` | Print a platform's systems with the files and size each holds, the files other systems share too counted apart. `--system`, `--core`, `--region`, `--target` and `--installed-cores` narrow it, as they narrow an install. A run prints one list: two listing options are refused |
|
||||
| <span id="option-list-cores"></span>`--list-cores` | Print the cores whose extra files a platform installs. The options that narrow `--list-systems` narrow it too |
|
||||
| <span id="option-list-emulators"></span>`--list-emulators` | Print every name `--emulator` accepts, each buildbot name beside the emulator it stands for. `--target` and `--installed-cores` narrow it, and `--system`, `--core`, `--region` and `--emulator` are refused |
|
||||
@@ -2113,6 +2166,7 @@ fields, the installer refuses to narrow rather than install everything.
|
||||
| `1` | a failure: the one-liner could not download or verify `install.py`, or found no Python 3.8 with its ssl, unicodedata and zlib modules (nothing was run), an unusable base URL, `--installed-cores` with no core found, a manifest that fails validation, a fetch that never succeeded, no platform to install for in a non-interactive run, some files failed or were left out by `--offline` while others installed, a `--from-pack` pack that cannot be read, lacks a part or is for another platform, a `--from` folder that does not exist or cannot be read, a BIOS folder that is a file or lies under one, a `--dest` that is not the card of the system named (another system's card, a folder inside one, a drive with none of its files where its card always has them, or a folder that does not exist), `--restore` could not put a file back, `--remove` or `--delete-backup` could not delete a file or update the install record, `--pack` could not get a file or write the pack (nothing is left behind), or `--add-app` could not put every file of the app on the card |
|
||||
| `2` | nothing was installed: every file the run tried failed (a BIOS folder that cannot be written, for one), or `--offline` left every file out, the drive has too little free space for the download (checked before any folder is created), or the question about a folder that does not exist, named with `--dest` or typed at the folder question, was answered no. Also an option the installer refused before any download: an unknown option, `--jobs` outside 1 to 32, `--target` with `--every-board`, `--target` with `--from-pack` or `--offline` (or `RETROBIOS_INSTALL_OFFLINE` set) when no core list per board is at hand (the pack carries none and none is beside `--manifest` as `targets/<platform>.json`), or for a platform that publishes none, which is said to have no hardware targets, `--list-targets` with `--offline` and neither, `--add-app` with `--check`, `--dry-run`, a listing, `--from-pack` or `--offline`. The message then starts with `install.py: error:`. Also an unknown platform, target, system, core or emulator, said in an `Error:` or `Unknown platform` line and an `error` event whose `stage` is `option`. Also `--add-app` for a folder on no card that takes the app, said in an `Error:` line and an `app` event before anything is written. With `--restore` or `--delete-backup`, a folder that is not a dated folder inside `retrobios-backup`. With `--pack`, no pack tried: a choice that keeps no file, a file larger than a part of `--split`, too little room, or `--pack` with an option that reads the BIOS folder of this machine. With `--remove`, nothing removed: no install record of the setup, nothing it can remove, no `--yes` without a terminal, or no at its question, and the same for `--delete-backup`. Also a quit chosen before the install, as `gh` ends a cancelled prompt: `q` at a question, `q` or **Quit** on the full screen, which then keeps `RetroBIOS: quit. Nothing was installed.`, and the full screen closed with no button pressed (`RETROBIOS_IDLE_EXIT`). No code but `0` closes a Windows Terminal tab started on the installer itself, so such a tab stays open on a quit |
|
||||
| `3` | `--check` ran and found files to fetch or wrong copies, nothing having failed. A failure takes `1` as before: a manifest refused, a `--from` folder that does not exist. Until November 2026 this case also ended on `1`, so a script that reads any code but `0` as "not ready" needs no change |
|
||||
| `4` | `--find` read the hash and the list holds no one file for it: none has it (`unknown`), two contents share it (`ambiguous`), or the list records no hash of that kind (`unrecorded`). With `--json` the `result` key says which, and nothing is installed |
|
||||
| `130` | stopped with Ctrl+C, or with Ctrl+C or Ctrl+D at a question, the terminal keeping `RetroBIOS: stopped. Nothing was installed.` before an install. Run the same command again to carry on |
|
||||
| `141` | the output was piped to a reader that closed early (`--list-platforms \| head`) |
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ Every module in `tests/`, by the area it guards.
|
||||
| Packs and manifests | synthetic + real packs | `test_artifact_lock`, `test_atomic_artifacts`, `test_batocera_cores`, `test_core_data_trees`, `test_deterministic_zip`, `test_emulator_pack_counts`, `test_finalize_pack_names`, `test_large_file_cache`, `test_libretro_layout`, `test_manifest_entry`, `test_minui_platform`, `test_no_game_data`, `test_pack_conformance_dirs`, `test_pack_core_extras`, `test_pack_counts`, `test_pack_destinations`, `test_pack_failures`, `test_pack_file_names`, `test_pack_grouping`, `test_pack_integrity`, `test_pack_member_identity`, `test_pack_readme`, `test_platform_inheritance`, `test_platform_keys`, `test_release_packs`, `test_required_only_archives`, `test_required_only_twins`, `test_save_root`, `test_split_extras`, `test_split_names`, `test_split_pack`, `test_system_pack_extras`, `test_system_pack_parity`, `test_torrentzip`, `test_which_pack` |
|
||||
| Slots and regions | synthetic + profiles | `test_region`, `test_region_agnostic_scan`, `test_region_groups`, `test_region_held`, `test_region_platform_index`, `test_region_required_only`, `test_slot`, `test_slots`, `test_slots_shipped_file` |
|
||||
| Hardware targets and systems | synthetic + target files | `test_amberelec_targets`, `test_emuelec_targets`, `test_extract_targets`, `test_lakka_targets`, `test_libretro_slugs`, `test_system_ids`, `test_system_selection`, `test_target_names`, `test_target_scrapers`, `test_target_systems`, `test_target_verify` |
|
||||
| Installer and downloads | loopback server | `test_check_release`, `test_download`, `test_install`, `test_install_cores`, `test_install_experience`, `test_install_filesystems`, `test_install_app`, `test_install_from`, `test_install_games`, `test_install_journeys`, `test_install_offline`, `test_install_pack`, `test_install_removal`, `test_install_selection`, `test_install_tui`, `test_pypi_package` |
|
||||
| Installer and downloads | loopback server | `test_check_release`, `test_download`, `test_install`, `test_install_cores`, `test_install_experience`, `test_install_expert`, `test_install_filesystems`, `test_install_app`, `test_install_from`, `test_install_games`, `test_install_journeys`, `test_install_offline`, `test_install_pack`, `test_install_removal`, `test_install_selection`, `test_install_tui`, `test_pypi_package` |
|
||||
| Handheld launchers | a pty as the console, fake installer and firmware tools, stubbed PortMaster dialogs | `test_handheld_launchers`, `test_port`, `test_site_handheld` |
|
||||
| Running cores | parsers on fixed inputs, a libretro core built from C in the test when a compiler exists | `test_core_probe` |
|
||||
| Measurement records | synthetic record files, the committed `measurements/` against HEAD, the **Proof** line naming the BIOS a core ran, and that no page shows a Tested block, a region outcome or a time per frame | `test_measurements` |
|
||||
|
||||
Reference in new issue
Block a user