EmuDeck/tools/launchers/vita3k.sh
2024-01-05 11:43:43 +01:00

16 lines
458 B
Bash
Executable file

#!/bin/sh
source $HOME/.config/EmuDeck/backend/functions/all.sh
emulatorInit "Vita3k"
export LC_ALL="C"
emuName="Vita3K" #parameterize me
emufolder="$HOME/Applications/Vita3K" # has to be applications for ES-DE to find it
#find full path to emu executable
exe=$(find "$emufolder" -iname "${emuName}" | sort -n | cut -d' ' -f 2- | tail -n 1 2>/dev/null)
#make sure that file is executable
chmod +x "$exe"
eval "${exe} ${param}"
rm -rf "$savesPath/.gaming"