feat: add misterfpga platform support

This commit is contained in:
Abdessamad Derraz committed 2026-08-07 13:28:15 +02:00
1 parent d88e87dc34
commit 8663ec17b7
29 files changed
+1631 -281

No files matched your search

+8
View File
@@ -48,6 +48,7 @@ DEFAULT_DESTS = {
"retrodeck": Path.home() / "retrodeck",
"emudeck": Path.home() / "Emulation" / "bios",
"rocknix": Path("/storage/roms/bios"),
"misterfpga": Path("/media/fat/games"),
}
@@ -202,6 +203,13 @@ def _detect_embedded() -> list[tuple[str, Path]]:
found.append(("rocknix", Path("/storage/roms/bios")))
return found
# MiSTer keeps the SD card at /media/fat with the main binary at its root
# (Main_MiSTer file_io.cpp:1150-1156), and cores read from games/
# (file_io.h:168)
if Path("/media/fat/MiSTer").exists():
found.append(("misterfpga", Path("/media/fat/games")))
return found
if Path("/etc/knulli-release").exists():
found.append(("batocera", Path("/userdata/bios")))
return found