mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 07:38:50 +01:00
- 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!
13 lines
358 B
Bash
Executable File
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
|