mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-16 05:42:31 -05:00
fix: system icons (systematic theme), retropie logo
This commit is contained in:
@@ -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"]]
|
||||||
|
|||||||
Reference in New Issue
Block a user