fix: add psx variant mappings, fix emulator verify path

scph3000.bin v2.1J and scph3500.bin v2.2J already existed under
different primary names (scph3500.bin and scph5000.bin respectively).
Add .variants/ entries so by_name resolves both filenames.

verify_single_emulator now calls _find_best_variant on hash mismatch,
matching the platform-level verification path.
This commit is contained in:
Abdessamad Derraz
2026-04-02 01:24:24 +02:00
parent c3fa55bd46
commit fa0ed63718
3 changed files with 18 additions and 7 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1230,13 +1230,24 @@ def verify_emulator(
check = check_file_validation(local_path, name, validation_index)
if check:
reason, _emus = check
result = {
"name": name,
"status": Status.UNTESTED,
"required": required,
"path": local_path,
"reason": reason,
}
better = _find_best_variant(
file_entry, db, local_path, validation_index,
)
if better:
result = {
"name": name,
"status": Status.OK,
"required": required,
"path": better,
}
else:
result = {
"name": name,
"status": Status.UNTESTED,
"required": required,
"path": local_path,
"reason": reason,
}
else:
result = {
"name": name,