This commit is contained in:
Dragoon Dorise 2024-03-12 22:09:32 +01:00
commit 4d30536051
2 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,4 @@
collection: Sony PlayStation Vita
shortname: psvita
extensions: eboot.bin
launch: /run/media/mmcblk0p1/Emulation/tools/launchers/vita3k.sh -Fr {file.path}
extensions: psvita, PSVITA
launch: /run/media/mmcblk0p1/Emulation/tools/launchers/vita3k.sh {file.path}

View file

@ -12,5 +12,14 @@ exe=$(find "$emufolder" -iname "${emuName}" | sort -n | cut -d' ' -f 2- | tail -
#make sure that file is executable
chmod +x "$exe"
eval "${exe} ${param}"
rm -rf "$savesPath/.gaming"
fileExtension="${@##*.}"
if [[ $fileExtension == "psvita" ]]; then
vita3kFile=$(<"${*}")
echo "GAME ID: $vita3kFile"
eval "${exe}" -Fr "$vita3kFile"
else
eval "${exe} ${param}"
fi
rm -rf "$savesPath/.gaming"