From d643f6d5600a9dabf8e2fd3a232c89cd6be75162 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:41:23 +0100 Subject: [PATCH] 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 " BIOS files". A profile listing no file titles its page " emulator": the setup keeps its own title. --- scripts/generate_site.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/generate_site.py b/scripts/generate_site.py index e1fb0141f..f854de031 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -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}"