fix: file truth models by each platform's target

Lakka builds an image named switch while RetroArch files switch as
nintendo-switch. One canonical name taken across the registry put
Lakka's model under RetroArch's target. generate_truth now writes each
platform under its own target name, and diff_truth --target reads it.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 06:24:07 +02:00
1 parent c3162dcd27
commit 694d1defc0
5 files changed
+39 -30

No files matched your search

+3 -2
View File
@@ -494,8 +494,9 @@ def truth_target_dir(
Slugged from the name the target is filed under: `nx`, `switch` and
`nintendo-switch` wrote three copies of one model, and a run under one
alias left the others stale beside it. generate_truth writes here and
the pipeline's diff reads here, so both call this.
alias left the others stale beside it. Called per platform, since two
platforms can file one name differently (Lakka builds an image named
switch). generate_truth writes here and diff_truth reads here.
"""
named = canonical_target_name(platforms, target, platforms_dir)
slug = re.sub(r"[^a-z0-9]+", "-", named.strip().lower()).strip("-")