gba_launch_mednafen.sh 181 B

12345678
  1. #!/bin/sh
  2. # Launch the process in background, record the PID into a file, wait
  3. # for the process to terminate and erase the recorded PID
  4. gpsp "$1"&
  5. pid record $!
  6. wait $!
  7. pid erase