mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
STEAM_SYNC_SH: migrated launcher to the new run_game
This commit is contained in:
parent
601a23f074
commit
a79eec2b79
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue