EmuDeck/functions/RemotePlayClientScripts/remotePlaySteamLink.sh
Dragoon Dorise 00a8f1c19c
New paths (#1381)
* new paths

* /

* EmuDeck/

* mv

* no &

* ESDE new location

* ESDE new path

* no symlink load

* bigpemu new path

* force move

* global vars

* oopsie

* missing $emudeckBackend

* better migration detection

* Keep Appimages in Applications

* Keep Appimages in Applications
2025-01-02 13:42:31 +01:00

50 lines
1.2 KiB
Bash

#!/bin/bash
# Variables
SteamLink_emuName="SteamLink"
SteamLink_emuType="$emuDeckEmuTypeFlatpak"
SteamLink_emuPath="com.valvesoftware.SteamLink"
SteamLink_releaseURL=""
# Install
SteamLink_install() {
setMSG "Installing $SteamLink_emuName."
installEmuFP "${SteamLink_emuName}" "${SteamLink_emuPath}" "remoteplay" ""
}
# ApplyInitialSettings
SteamLink_init() {
setMSG "Initializing $SteamLink_emuName settings."
configEmuFP "$SteamLink_emuName" "$SteamLink_emuPath" "true"
#SteamLink_addSteamInputProfile
}
# Update flatpak & launcher script
SteamLink_update() {
setMSG "Updating $SteamLink_emuName settings."
updateEmuFP "${SteamLink_emuName}" "${SteamLink_emuPath}" "remoteplay" ""
}
# Uninstall
SteamLink_uninstall() {
setMSG "Uninstalling $SteamLink_emuName."
uninstallEmuFP "$SteamLink_emuName" "$SteamLink_emuPath" "remoteplay" ""
}
# Check if installed
SteamLink_IsInstalled() {
if [ "$(flatpak --columns=app list | grep "$SteamLink_emuPath")" == "$SteamLink_emuPath" ]; then
echo true
return 1
else
echo false
return 0
fi
}
# Import steam profile
SteamLink_addSteamInputProfile() {
echo "NYI"
#rsync -r "$emudeckBackend/configs/steam-input/emudeck_steamlink_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
}