fix: accept a size list beside a size window

A profile entry that declares exact sizes and a min_size/max_size window
now accepts either, as the code it transcribes does. size_refusal let the
exact size outrank the window, so LinApple's ROMs (12288 to 65536 bytes),
the ZEsarUX QL ROM (16 KB floor) and MesenCE's BS-X.bin (32 KB floor) were
held to the one dump size. Master.dsk lists the two lone sizes the sector
image probe also takes. Truth, the core refusal message and the emulator
cards read the same rule.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 10:30:59 +01:00
1 parent 4d62c56730
commit 15f913d0ba
11 files changed
+134 -49

No files matched your search

+2 -2
View File
@@ -389,7 +389,7 @@ def _card_place_details(f: dict, profile: dict, owner: str, data_href: str) -> l
def _card_size_details(f: dict) -> list[str]:
"""The size, with its bounds."""
"""The exact sizes, then the window the code also accepts (size_refusal)."""
size = f.get("size")
fmin = f.get("min_size")
fmax = f.get("max_size")
@@ -407,7 +407,7 @@ def _card_size_details(f: dict) -> list[str]:
else:
size_str = sized(size)
if bounds:
size_str += f" ({', '.join(bounds)})"
size_str += f", or {', '.join(bounds)}"
return [f"Size: {size_str}"]
if bounds:
return [f"Size: {', '.join(bounds)}"]