From a79eec2b79debbae28a2b6ea733c7d2412342f04 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 8 Sep 2024 22:47:24 +0900 Subject: [PATCH] STEAM_SYNC_SH: migrated launcher to the new run_game --- functions/steam_sync.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/steam_sync.sh b/functions/steam_sync.sh index 4d11e8cd..17af3174 100644 --- a/functions/steam_sync.sh +++ b/functions/steam_sync.sh @@ -345,7 +345,9 @@ add_to_steam() { # fi # Populate the .sync script with the correct command - local command="flatpak run net.retrodeck.retrodeck --run \"$roms_folder/$system/$path\" $system" + # TODO: we need to implement the emulator parameter: + # TODO: if there is any emulator defined in the xml we use that, else... how we can know which is the default one? + local command="flatpak run net.retrodeck.retrodeck --run -s $system \"$roms_folder/$system/$path\"" echo -e '#!/bin/bash\n' > "$launcher" echo -e "if [ test \"$(whereis flatpak)\" = \"flatpak:\" ]; then" >> "$launcher" echo -e "\tflatpak-spawn --host $command" >> "$launcher"