Pegasus: Add support for Vita3K (#1119)

This commit is contained in:
rawdatafeel 2024-03-12 16:42:45 -04:00 committed by GitHub
parent 72c405a342
commit fd04c74a6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"