feat: cite option lists as choices_from

RetroBat's es_features.cfg and KNULLI's es_features.yml list the values
a menu offers. They move out of source_ref into choices_from, beside the
generator that writes the choice. RetroBat's xemu flashrom record holds
outside a Chihiro launch (Xemu.Generator.cs:48, 284), and KNULLI's
libretro boot disk records name the one core es_features offers them
for. Rescraped at the pinned revisions.
This commit is contained in:
Abdessamad Derraz committed 2026-11-11 11:04:08 +01:00
1 parent c5d3e85bac
commit f950482567
5 files changed
+84 -29

No files matched your search

+5 -4
View File
@@ -598,10 +598,11 @@ class BootDisks(unittest.TestCase):
self.assertEqual((hard.names, hard.passes_to), (["{bootdisk}.chd"], "command line -hard"))
self.assertEqual(hard.expands, {"bootdisk": ["macos3", "mac755"]})
self.assertTrue(hard.depends_on_option.startswith("bootdisk (system.name == 'macintosh'"))
self.assertEqual(
hard.source_ref,
f"{G}/mame/mameGenerator.py:3-4, 9-10, {kl.ES_FEATURES}:8-10",
)
# The menu's values are where the choices come from, the generator
# writing the choice is the evidence.
self.assertEqual(hard.source_ref, f"{G}/mame/mameGenerator.py:3-4, 9-10")
self.assertEqual(hard.choices_from, f"{kl.ES_FEATURES}:8-10")
self.assertIsNone(floppy.choices_from)
def test_a_name_built_another_way_raises(self):
broken = MAME.replace('"/userdata/bios/" + system.config["bootdisk"] + ".chd"', "disk")