From 5cba005d67f304ea0fa75c67fc8997dce13a92c6 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 20 Oct 2026 19:46:37 +0200 Subject: [PATCH] fix: keep the platform's hash order when unchanged Where the truth names no value the platform lacks, hashes() still put the truth's values first and rewrote the list in another order: Recalbox's msx/CARTS.SHA md5 attribute came out with its two values swapped, a diff line that changes nothing the frontend checks. The platform's own list now stands when it already holds every value. --- scripts/exporter/baseline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/exporter/baseline.py b/scripts/exporter/baseline.py index 35a90d2b..2f79fab6 100644 --- a/scripts/exporter/baseline.py +++ b/scripts/exporter/baseline.py @@ -163,6 +163,11 @@ class NativeFile: return platform_values if not set(truth_values) & set(platform_values): return truth_values + # Nothing to add: the platform's own order stands. Truth first + # rewrote Recalbox's msx/CARTS.SHA md5 list with the same two values + # swapped, a diff line that changes nothing the frontend checks. + if set(truth_values) <= set(platform_values): + return platform_values # Keep the platform's extra accepted revisions alongside ours. return truth_values + [v for v in platform_values if v not in truth_values]