Advertisement
Guest User

Untitled

a guest
May 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. getip=`dig +short myip.opendns.com @resolver1.opendns.com`
  4. retroarch=`pwd`
  5.  
  6. ip=$(yad --image data/logo.png \
  7. --title="ST Netplay Connect" \
  8. --text-align=center \
  9. --text="Your IP is:
  10.  
  11. $getip
  12.  
  13. To host a game click Host.
  14.  
  15. Enter the host IP below and click Connect to continue.
  16. " \
  17. --entry \
  18. --button=gtk-cancel:1 \
  19. --button="Connect":2 \
  20. --button="Host":3 \
  21. --button="RetroArch":4 \
  22. --width 525 \
  23. --center \
  24. --selectable-labels 2>/dev/null)
  25.  
  26. foo=$?
  27.  
  28. [[ $foo -eq 1 ]]
  29.  
  30. if [[ $foo -eq 2 ]]; then
  31. retroarch -C $ip --port 55435 -L ${retroarch}/data/cores/fbalpha_libretro.so ${retroarch}/roms/ssf2xjr1.zip && ${retroarch}/netplay-connect
  32.  
  33. elif [[ $foo -eq 3 ]]; then
  34. retroarch -H -L ${retroarch}/data/cores/fbalpha_libretro.so ${retroarch}/roms/ssf2xjr1.zip && ${retroarch}/netplay-connect
  35.  
  36. elif [[ $foo -eq 4 ]]; then
  37. retroarch && ${retroarch}/netplay-connect
  38. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement