Guest User

HyperLauncher - Retroarch

a guest
Feb 11th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.42 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. stop() {
  4.   sleep 1
  5.   pidof kodi.bin | xargs kill -STOP
  6. }
  7. stop &
  8.  
  9. sudo cpufreq-set -g performance
  10.  
  11. if [[ "$1" = "Sony PlayStation" ]] ; then
  12.   CORE="mednafen_psx_libretro.so"
  13.  
  14. elif [[ "$1" = "Super Nintendo Entertainment System" ]] ; then
  15.   CORE="snes9x2010_libretro.so"
  16.  
  17. elif [[ "$1" = "Nintendo Entertainment System" || "$1" = "Nintendo Famicom" ]] ; then
  18.   CORE="nestopia_libretro.so"
  19.  
  20. elif [[ "$1" = "Nintendo Game Boy Advance" ]] ; then
  21.   CORE="mgba_libretro.so"
  22.  
  23. elif [[ "$1" = "Sega Genesis" ]] ; then
  24.   CORE="genesis_plus_gx_libretro.so"
  25.  
  26. elif [[ "$1" = "NEC PC Engine-CD" ]] ; then
  27.   CORE="mednafen_pce_fast_libretro.so"
  28.  
  29. elif [[ "$1" = "NEC TurboGrafx-16" ]] ; then
  30.   CORE="mednafen_supergrafx_libretro.so"
  31.  
  32. elif [[ "$1" = "MAME" ]] ; then
  33.   CORE="mame2014_libretro.so"
  34.  
  35. elif [[ "$1" = "Nintendo 64" ]] ; then
  36.   CORE="mupen64plus_libretro.so"
  37.  
  38. elif [[ "$1" = "Sony PSP" ]] ; then
  39.   CORE="ppsspp_libretro.so"
  40.  
  41. elif [[ "$1" = "Nintendo Game Boy Color" ]] ; then
  42.   CORE="gambatte_libretro.so"
  43.  
  44. elif [[ "$1" = "Nintendo Game Boy" ]] ; then
  45.   CORE="gambatte_libretro.so"
  46.  
  47. elif [[ "$1" = "MSX 2" ]] ; then
  48.   CORE="fmsx_libretro.so"
  49. fi
  50.  
  51. retroarch -L "/usr/lib/libretro/$CORE" "$3"
  52.  
  53. sudo cpufreq-set -g powersave
  54.  
  55. pidof kodi.bin | xargs kill -CONT
Add Comment
Please, Sign In to add comment