mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
HLTB search results carry `game_alias`, a comma-separated list of alternate titles (often the Japanese or regional name), but only `game_name` was scored. "Rockman X (Japan)" matched "Rockman EXE WS" instead of "Mega Man X" (alias "Rockman X"), and "Seiken Densetsu 3 (Japan)" matched nothing although "Trials of Mana" carries that alias. Each result is now scored against its name and every alias, keeping the best score per game, as howlongtobeatpy does. The match still returns the game's real name and id. Real names are listed before aliases so an alias repeating another result's name cannot take its match. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>