DrUm78 2e7430ffed Libretro cores are now stored by default in the Linux partition for a few purposes:
- prevent any unintentional deletion
- users can still override the default cores by placing theirs into Libretro/cores/ (launcher scripts will search this location first)
- provide an easy way to restore the default cores: just remove yours from Libretro/cores/ and that's it!
2025-03-21 18:57:04 +01:00

13 lines
358 B
Bash
Executable File

#!/bin/sh
# Launch the process in background, record the PID into a file, wait
# for the process to terminate and erase the recorded PID
if [ -e /mnt/Libretro/cores/mednafen_wswan_libretro.so ]; then
picoarch /mnt/Libretro/cores/mednafen_wswan_libretro.so "$1"&
else
picoarch /usr/games/mednafen_wswan_libretro.so "$1"&
fi
pid record $!
wait $!
pid erase