mirror of
https://github.com/s0liton/ps5-romm.git
synced 2026-10-17 18:02:57 +02:00
RommPS (PPSA76677) is a native PS5 app for RomM Sync: library browsing by platform with search and an A to Z bar, game details from RomM, downloads, settings, the setup on the console, and themes. The payload now handles standalone emulators on the PS5 (PSXS5 and SwanStationPS5, PS5SX2, PS5N64), PS1 serials read from disc images (libchdr for .chd), saves named by serial or file hash, several emulators per system with one shared save where the format matches, shared memory card backups, folders picked for systems without an emulator, and forgetting a previous server's ids after pairing with another. The PS4 build is marked experimental.
15 lines
624 B
Python
Executable File
15 lines
624 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""An @font-face rule with the font inlined: font_css.py <font.woff2> <out.css> <family>
|
|
|
|
The web UI is built into the payload and consoles may be offline, so fonts
|
|
can't come from the network."""
|
|
import base64
|
|
import sys
|
|
|
|
src, dst, family = sys.argv[1:4]
|
|
data = base64.b64encode(open(src, "rb").read()).decode()
|
|
with open(dst, "w") as f:
|
|
f.write("/* generated from %s - do not edit */\n" % src)
|
|
f.write("@font-face { font-family: '%s'; font-style: normal; font-weight: 100 900; font-display: swap;\n"
|
|
" src: url(data:font/woff2;base64,%s) format('woff2'); }\n" % (family, data))
|