Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #$1 = system name , $2 = game name , $3 = full rom path (folder + file name + extension) , $4 = file name only , $5 = file extension
- stop() {
- sleep 1
- pidof kodi.bin | xargs kill -STOP
- }
- stop &
- sudo cpufreq-set -g performance
- if [[ "$1" = "Sony PlayStation" ]] ; then
- CORE="mednafen_psx_libretro.so"
- elif [[ "$1" = "Super Nintendo Entertainment System" ]] ; then
- CORE="snes9x2010_libretro.so"
- elif [[ "$1" = "Nintendo Entertainment System" || "$1" = "Nintendo Famicom" ]] ; then
- CORE="nestopia_libretro.so"
- elif [[ "$1" = "Nintendo Game Boy Advance" ]] ; then
- CORE="mgba_libretro.so"
- elif [[ "$1" = "Sega Genesis" ]] ; then
- CORE="genesis_plus_gx_libretro.so"
- elif [[ "$1" = "NEC PC Engine-CD" ]] ; then
- CORE="mednafen_pce_fast_libretro.so"
- elif [[ "$1" = "NEC TurboGrafx-16" ]] ; then
- CORE="mednafen_supergrafx_libretro.so"
- elif [[ "$1" = "MAME" ]] ; then
- CORE="mame2014_libretro.so"
- elif [[ "$1" = "Nintendo 64" ]] ; then
- CORE="mupen64plus_libretro.so"
- elif [[ "$1" = "Sony PSP" ]] ; then
- CORE="ppsspp_libretro.so"
- elif [[ "$1" = "Nintendo Game Boy Color" ]] ; then
- CORE="gambatte_libretro.so"
- elif [[ "$1" = "Nintendo Game Boy" ]] ; then
- CORE="gambatte_libretro.so"
- elif [[ "$1" = "MSX 2" ]] ; then
- CORE="fmsx_libretro.so"
- fi
- retroarch -L "/usr/lib/libretro/$CORE" "$3"
- sudo cpufreq-set -g powersave
- pidof kodi.bin | xargs kill -CONT
Add Comment
Please, Sign In to add comment