mirror of
https://github.com/Abdess/retrobios.git
synced 2026-07-01 06:30:02 +00:00
fix: system icons (systematic theme), retropie logo
This commit is contained in:
parent
a52ab19cf8
commit
81278bd2e4
2 changed files with 5 additions and 2 deletions
|
|
@ -76,6 +76,6 @@ platforms:
|
||||||
retropie:
|
retropie:
|
||||||
config: retropie.yml
|
config: retropie.yml
|
||||||
status: archived # Last release: v4.8 (March 2022) - no update in 4 years
|
status: archived # Last release: v4.8 (March 2022) - no update in 4 years
|
||||||
logo: ""
|
logo: "https://cdn.simpleicons.org/raspberrypi"
|
||||||
scraper: null
|
scraper: null
|
||||||
schedule: null
|
schedule: null
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ SITE_NAME = "RetroBIOS"
|
||||||
REPO_URL = "https://github.com/Abdess/retrobios"
|
REPO_URL = "https://github.com/Abdess/retrobios"
|
||||||
RELEASE_URL = f"{REPO_URL}/releases/latest"
|
RELEASE_URL = f"{REPO_URL}/releases/latest"
|
||||||
GENERATED_DIRS = ["platforms", "systems", "emulators"]
|
GENERATED_DIRS = ["platforms", "systems", "emulators"]
|
||||||
|
SYSTEM_ICON_BASE = "https://raw.githubusercontent.com/libretro/retroarch-assets/master/xmb/systematic/png"
|
||||||
|
|
||||||
|
|
||||||
def _timestamp() -> str:
|
def _timestamp() -> str:
|
||||||
|
|
@ -285,7 +286,9 @@ def generate_system_page(
|
||||||
|
|
||||||
for console_name in sorted(consoles.keys()):
|
for console_name in sorted(consoles.keys()):
|
||||||
files = consoles[console_name]
|
files = consoles[console_name]
|
||||||
lines.append(f"## {console_name}")
|
icon_name = f"{manufacturer} - {console_name}".replace("/", " ")
|
||||||
|
icon_url = f"{SYSTEM_ICON_BASE}/{icon_name.replace(' ', '%20')}.png"
|
||||||
|
lines.append(f"## {{ width=24 }} {console_name}")
|
||||||
lines.append("")
|
lines.append("")
|
||||||
# Separate main files from variants
|
# Separate main files from variants
|
||||||
main_files = [f for f in files if "/.variants/" not in f["path"]]
|
main_files = [f for f in files if "/.variants/" not in f["path"]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue