fix(ss): map Win9x to ScreenScraper's generic Windows system

ScreenScraper's dedicated "PC Win9X" system (137) holds very few games;
Win9x titles are filed under the generic "PC Windows" system (138), which
acts as a fall-through like MAME does for arcade. Searching 137 meant
Win9x games only matched when scraped by ID.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Georges-Antoine Assi
2026-09-27 14:45:50 -04:00
parent 61d0ef332b
commit f40240d287
2 changed files with 9 additions and 1 deletions

View File

@@ -1374,7 +1374,8 @@ SCREENSAVER_PLATFORM_LIST: dict[UPS, SlugToSSId] = {
UPS.WIIU: {"id": 18, "name": "Wii U"},
UPS.WIN: {"id": 138, "name": "PC Windows"},
UPS.WIN3X: {"id": 136, "name": "PC Win3.xx"},
UPS.WIN9X: {"id": 137, "name": "PC Win9X"},
# ScreenScraper files most Win9x games under its generic Windows system
UPS.WIN9X: {"id": 138, "name": "PC Win9X"},
UPS.WASM_4: {"id": 262, "name": "WASM-4"},
UPS.WONDERSWAN: {"id": 45, "name": "WonderSwan"},
UPS.WONDERSWAN_COLOR: {"id": 46, "name": "WonderSwan Color"},

View File

@@ -1121,6 +1121,13 @@ class TestGetPlatform:
assert platform["ss_id"] == 231
assert platform["name"] == "EasyRPG"
def test_win9x_maps_to_the_generic_windows_system(self):
handler = SSHandler()
platform = handler.get_platform("win9x")
assert platform["ss_id"] == handler.get_platform("win")["ss_id"] == 138
assert platform["name"] == "PC Win9X"
class TestGetRomType:
def _file(self, ext: str, top_level: bool = True) -> MagicMock: