STEAM_SYNC_SH: migrated launcher to the new run_game

This commit is contained in:
XargonWan 2024-09-08 22:47:24 +09:00
parent 601a23f074
commit a79eec2b79

View file

@ -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"