mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-06-25 00:03:36 -04:00
* Eden * Fix Citron command line arguments handling --------- Co-authored-by: Dragoon Dorise <rodrigosedano@me.com>
24 lines
656 B
Bash
Executable file
24 lines
656 B
Bash
Executable file
#!/bin/bash
|
|
emuName="eden" #parameterize me
|
|
|
|
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
|
emulatorInit "$emuName"
|
|
|
|
# find full path to emulator appimage
|
|
appimage=$(find "$emusFolder" -iname "${emuName}*.AppImage" -print -quit 2>/dev/null)
|
|
|
|
# if appimage doesn't exist fall back to flatpak
|
|
if [[ -z "$appimage" ]]; then
|
|
flatpakApp=$(/usr/bin/flatpak list --app --columns=application | grep -im1 "${emuName}")
|
|
set -- /usr/bin/flatpak run "$flatpakApp" "$@"
|
|
else
|
|
# make sure the appimage is executable
|
|
chmod +x "$appimage"
|
|
set -- "$appimage" "$@"
|
|
fi
|
|
|
|
echo "Launching ${emuName} with:" "$@"
|
|
"$@"
|
|
|
|
cloud_sync_uploadForced
|
|
rm -rf "$savesPath/.gaming"
|