mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 06:18:51 -06:00
chore: name the split resolve modules
This commit is contained in:
1 parent
571a22d2b6
commit
9cdca28e52
7 files changed
+21
-27
No files matched your search
@@ -100,6 +100,7 @@ on:
|
||||
- "scripts/refresh_data_dirs.py"
|
||||
- "scripts/release/restore.py"
|
||||
- "scripts/resolve/__init__.py"
|
||||
- "scripts/resolve/acceptance.py"
|
||||
- "scripts/resolve/archives.py"
|
||||
- "scripts/resolve/categories.py"
|
||||
- "scripts/resolve/collisions.py"
|
||||
@@ -108,23 +109,33 @@ on:
|
||||
- "scripts/resolve/cores.py"
|
||||
- "scripts/resolve/datadirs.py"
|
||||
- "scripts/resolve/directories.py"
|
||||
- "scripts/resolve/entryscope.py"
|
||||
- "scripts/resolve/gamedata.py"
|
||||
- "scripts/resolve/grouping.py"
|
||||
- "scripts/resolve/launcherconfig.py"
|
||||
- "scripts/resolve/launcherlayer.py"
|
||||
- "scripts/resolve/launcherplaces.py"
|
||||
- "scripts/resolve/launcherrefs.py"
|
||||
- "scripts/resolve/launchers.py"
|
||||
- "scripts/resolve/launches.py"
|
||||
- "scripts/resolve/layout.py"
|
||||
- "scripts/resolve/localfile.py"
|
||||
- "scripts/resolve/lookup.py"
|
||||
- "scripts/resolve/namestages.py"
|
||||
- "scripts/resolve/nativemode.py"
|
||||
- "scripts/resolve/nativemodel.py"
|
||||
- "scripts/resolve/ownership.py"
|
||||
- "scripts/resolve/packfiles.py"
|
||||
- "scripts/resolve/platformdiff.py"
|
||||
- "scripts/resolve/reconcile.py"
|
||||
- "scripts/resolve/regions.py"
|
||||
- "scripts/resolve/review.py"
|
||||
- "scripts/resolve/reviewhashes.py"
|
||||
- "scripts/resolve/sendable.py"
|
||||
- "scripts/resolve/slot.py"
|
||||
- "scripts/resolve/standalone.py"
|
||||
- "scripts/resolve/truth.py"
|
||||
- "scripts/resolve/truthsystems.py"
|
||||
- "scripts/resolve/validation.py"
|
||||
- "scripts/restore_large_files.py"
|
||||
- "scripts/romrecipes/__init__.py"
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
"""The platform's launcher layer, read by verify and by the pack builder.
|
||||
|
||||
A platform's own launch code often decides which name a file is read under.
|
||||
Batocera's DuckStation generator tries 22 names per region and keeps the
|
||||
first it finds, RetroBat's ares launcher writes the LaserActive image it
|
||||
finds into ares's settings. The platform scraper records that code under
|
||||
``launchers:`` and this module turns the records into places: a set of
|
||||
destinations, relative to the directory core files go to, any one of which
|
||||
the launcher reads for one purpose.
|
||||
|
||||
Two consequences follow, both computed here once for every reader. A core
|
||||
file the launcher would not read because another name of the same place is
|
||||
held is not missing on that platform. A place nothing fills yet receives,
|
||||
under the launcher's name, a file the core accepts by content.
|
||||
"""
|
||||
"""Where a platform's launch code puts an emulator's files: handed directories, executed files, standalone bindings."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
"""Platform truth generation and diffing.
|
||||
|
||||
Generates ground-truth YAML from emulator profiles for gap analysis,
|
||||
and diffs truth against scraped platform data to find divergences.
|
||||
"""
|
||||
"""Platform truth generated from emulator profiles, for gap analysis and the native export."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ COMMANDS = {
|
||||
),
|
||||
"slots.py": ("packs/slots.py", "resolve/collisions.py", "packs/slotscan.py", "packs/slotreport.py"),
|
||||
"validate_pr.py": (
|
||||
"resolve/review.py", "devtools/reviewfiles.py", "devtools/reviewreport.py",
|
||||
"resolve/review.py", "resolve/reviewhashes.py", "devtools/reviewfiles.py", "devtools/reviewreport.py",
|
||||
"core/gitclone.py",
|
||||
),
|
||||
"refresh_data_dirs.py": ("packs/datadirs.py", "packs/datadirextract.py"),
|
||||
@@ -183,7 +183,7 @@ COMMANDS = {
|
||||
"model/citations.py",
|
||||
"profiling/attribution.py",
|
||||
),
|
||||
"generate_truth.py": ("resolve/truth.py",),
|
||||
"generate_truth.py": ("resolve/truth.py", "resolve/truthsystems.py"),
|
||||
"diff_truth.py": ("exporter/truthdiff.py", "exporter/diffreport.py"),
|
||||
"fetch_site_images.py": ("sitegen/imagefetch.py", "sitegen/imagenormalize.py"),
|
||||
"make_site_icons.py": ("sitegen/brand.py", "sitegen/chromium.py"),
|
||||
|
||||
@@ -5349,7 +5349,8 @@ class SignaturesCarryTheirTypes(unittest.TestCase):
|
||||
# Lowered as modules are annotated, never raised.
|
||||
CEILING = 0
|
||||
COMPLETE = ("core/artifacts.py", "model/platforms.py", "model/profiles.py", "resolve/localfile.py",
|
||||
"resolve/validation.py", "generate_pack.py")
|
||||
"resolve/lookup.py", "resolve/namestages.py", "resolve/validation.py",
|
||||
"resolve/entryscope.py", "resolve/acceptance.py", "generate_pack.py")
|
||||
|
||||
@staticmethod
|
||||
def _missing(path: Path) -> list[str]:
|
||||
@@ -6263,7 +6264,7 @@ class ZippedFileMd5IsParsedOnce(unittest.TestCase):
|
||||
)
|
||||
|
||||
def test_the_three_sites_share_the_parser(self):
|
||||
for module in ("resolve/validation.py", "verify.py"):
|
||||
for module in ("resolve/acceptance.py", "verify.py"):
|
||||
source = script_source(module)
|
||||
self.assertIn("parse_hash_list(", source, module)
|
||||
self.assertIn("inner_rom_data_check(", script_source("packs/integrity.py"))
|
||||
|
||||
@@ -521,7 +521,7 @@ that names the BIOS directory must match a known construct, else the scrape
|
||||
stops with `LauncherPatternMissing`.
|
||||
|
||||
`verify.py` and the pack builder read the records through one function,
|
||||
`LauncherLayer.settle()` in `scripts/resolve/launchers.py`, applied inside the
|
||||
`LauncherLayer.settle()` in `scripts/resolve/launcherlayer.py`, applied inside the
|
||||
cross-reference both of them consume. A `names_searched` list is one place:
|
||||
the names are tried in order and one held file fills it, so a core file the
|
||||
launcher would never open once another name of the list is there is not
|
||||
|
||||
@@ -108,7 +108,7 @@ file itself: `Bios::Scan` takes the composite for every `.zip`
|
||||
The registry gives Recalbox `zip_digest: composite`. For a platform so marked, a
|
||||
`.zip` entry is checked against its composite alone, by the resolver
|
||||
(`resolve_local_file`) and by the pack check (`digest_verdict` in
|
||||
`scripts/resolve/validation.py`). On other platforms the ZIP file's direct MD5 is tried first
|
||||
`scripts/resolve/acceptance.py`). On other platforms the ZIP file's direct MD5 is tried first
|
||||
and the composite after it.
|
||||
|
||||
### Multi-hash (Recalbox)
|
||||
@@ -449,7 +449,7 @@ pack verification apply the same rule.
|
||||
|
||||
### Variant search
|
||||
|
||||
`validated_choice()` (`scripts/resolve/validation.py`) decides the file a platform
|
||||
`validated_choice()` (`scripts/resolve/acceptance.py`) decides the file a platform
|
||||
destination ships when the emulators reading that destination check it. The
|
||||
pack, verify and the install manifest all read it, so they name the same file.
|
||||
|
||||
|
||||
Reference in new issue
Block a user