Advertisement
Guest User

retroarch.sh

a guest
Feb 23rd, 2016
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  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 &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement