EmuDeck/functions/GenericApplicationsScripts/genericApplicationHeroic.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

49 lines
942 B
Bash

#!/bin/bash
# Variables
Heroic_emuName="Heroic-Games-Launcher"
Heroic_emuType="$emuDeckEmuTypeAppImage"
Heroic_emuPath="$emusFolder/Heroic-Games-Launcher.AppImage"
# Install
Heroic_install() {
setMSG "Installing $Heroic_emuName."
local showProgress=$1
installEmuAI "$Heroic_emuName" "" "$(getReleaseURLGH "Heroic-Games-Launcher/HeroicGamesLauncher" ".AppImage")" "" "" "genericapplication" "$showProgress"
}
# ApplyInitialSettings
Heroic_init() {
echo "NYI"
}
# Update appimage
Heroic_update() {
setMSG "Updating $Heroic_emuName settings."
rm -f "$Heroic_emuPath"
Heroic_install
}
# Uninstall
Heroic_uninstall() {
setMSG "Uninstalling $Heroic_emuName."
uninstallEmuAI "$Heroic_emuName" "" "" "genericapplication"
}
# Check if installed
Heroic_IsInstalled() {
if [ -f "$Heroic_emuPath" ]; then
echo true
return 1
else
echo false
return 0
fi
}
# Import steam profile
Heroic_addSteamInputProfile() {
echo "NYI"
}