FunKey-OS/FunKey/board/funkey/rootfs-overlay/usr/games/launchers/snes_launch_mednafen.sh

9 lines
182 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
psnes "$1"&
pid record $!
wait $!
pid erase