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
@@ -18,7 +18,7 @@ from pathlib import Path
|
||||
|
||||
from sitegen import diagrams
|
||||
from sitegen import steps as sitesteps
|
||||
from model.guides import TERMINALS
|
||||
from model.guides import terminals
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
|
||||
@@ -49,7 +49,7 @@ class EachDrawingNamesItsSteps(unittest.TestCase):
|
||||
|
||||
def test_the_drawing_and_the_text_name_the_same_keys(self):
|
||||
for tab, (_title, steps) in sitesteps.STEPS.items():
|
||||
text = TERMINALS[tab][1].replace("**", "")
|
||||
text = terminals()[tab][1].replace("**", "")
|
||||
keys = {step.word for step in steps if step.icon == "keys"}
|
||||
with self.subTest(tab=tab):
|
||||
for word in keys:
|
||||
|
||||
Reference in new issue
Block a user