Guest User

retroarch.sh

a guest
Feb 23rd, 2016
350
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #$1 = system name , $2 = game name , $3 = full rom path (folder + file name + extension) , $4 = file name only , $5 = file extension
  3.  
  4. kill $(pidof kodi.bin)
  5.  
  6. if [[ "$1" = "Sony Playstation" ]] ; then
  7. RETROARCH_CORE="/path/to/retroarch/core/to/use/for/psx.so"
  8. elif [[ "$1" = "Super Nintendo Entertainment System" ]] ; then
  9. RETROARCH_CORE="/path/to/retroarch/core/to/use/for/snes.so"
  10. fi
  11.  
  12. retroarch -L "$RETROARCH_CORE" "$3"
  13.  
  14. kodi &
RAW Paste Data