Drawer: a game from the rail is headed by its emulator (ARMSX2, RPCS3), not "Desktop"

This commit is contained in:
The412Banner committed 2026-09-24 04:43:24 -04:00
1 parent 9f2c98d28d
commit 1c7130545f
3 files changed
+8 -1

No files matched your search

@@ -76,6 +76,9 @@ object Library {
"melonds" to "melonds", "cemu" to "cemu", "ppsspp" to "emulators", "retroarch" to "emulators",
)
/** The emulator's name for a program path from the rail ("ARMSX2"), or null. */
fun nameForProgram(program: String?): String? = specs.firstOrNull { it.program == program }?.name
/** Desktop catalog package that supplies this emulator. */
fun packageId(emulatorId: String): String? = installedIds[emulatorId]