mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 06:48:52 -06:00
fix: read the platform guides on first use
model.guides read and checked _registry.yml and _guides.yml at import, from the repository: a pack build died on a registry entry without a guide before parsing its options, and a site run on another platforms folder took the repository's guides. The guides now load on first use, keyed on siteinputs.current().platforms, behind accessor functions.
This commit is contained in:
1 parent
9f987adb8c
commit
e8b3cef5d5
31 files changed
+290
-204
No files matched your search
@@ -90,10 +90,10 @@ class PlatformLogos(unittest.TestCase):
|
||||
self.assertTrue(self.registry["minui"]["logo_flip"])
|
||||
|
||||
def test_every_logo_copy_has_a_registry_or_tile_logo(self):
|
||||
from model.guides import GROUP_TILES
|
||||
from model.guides import group_tiles
|
||||
|
||||
tiles = {re.sub(r"[^a-z0-9]+", "-", tile.name.lower()).strip("-"): tile.logo
|
||||
for group in GROUP_TILES.values() for tile in group}
|
||||
for group in group_tiles().values() for tile in group}
|
||||
sources = json.loads((REPO_ROOT / "docs_assets" / "logos" / "sources.json").read_text())
|
||||
for entry in sources["images"]:
|
||||
with self.subTest(platform=entry["platform"]):
|
||||
|
||||
Reference in new issue
Block a user