fix: title the RetroArch pack as before

The RetroArch frontend profile (files: []) made the get/ page read
"BIOS pack for RetroArch", the order kept for a setup whose emulator
page is titled "<name> BIOS files". A profile listing no file titles
its page "<name> emulator": the setup keeps its own title.
This commit is contained in:
Abdessamad Derraz committed 2026-11-11 14:41:23 +01:00
1 parent cbebe432fc
commit d643f6d560
1 file changed
+4 -2
+4 -2
View File
@@ -727,9 +727,11 @@ def get_page_title(platform_name: str, display: str) -> str:
"""What a get/ page holds, by its name: the ZIP of a setup a release
publishes one for, the files of any other. "Download KNULLI" read as
the system's own download. A setup that is also an emulator (BizHawk)
names it last: "BizHawk BIOS files" is the title of its emulator page."""
names it last: "BizHawk BIOS files" is the title of its emulator page.
A profile listing no file (the RetroArch frontend) titles its page
"... emulator", which no setup title repeats."""
kind = "BIOS pack" if has_release_pack(platform_name) else "BIOS files"
if (siteinputs.current().emulators / f"{platform_name}.yml").is_file():
if (_profiles_on_disk().get(platform_name) or {}).get("files"):
return f"{kind} for {display}"
return f"{display} {kind}"