Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- getip=`dig +short myip.opendns.com @resolver1.opendns.com`
- retroarch=`pwd`
- ip=$(yad --image data/logo.png \
- --title="ST Netplay Connect" \
- --text-align=center \
- --text="Your IP is:
- $getip
- To host a game click Host.
- Enter the host IP below and click Connect to continue.
- " \
- --entry \
- --button=gtk-cancel:1 \
- --button="Connect":2 \
- --button="Host":3 \
- --button="RetroArch":4 \
- --width 525 \
- --center \
- --selectable-labels 2>/dev/null)
- foo=$?
- [[ $foo -eq 1 ]]
- if [[ $foo -eq 2 ]]; then
- retroarch -C $ip --port 55435 -L ${retroarch}/data/cores/fbalpha_libretro.so ${retroarch}/roms/ssf2xjr1.zip && ${retroarch}/netplay-connect
- elif [[ $foo -eq 3 ]]; then
- retroarch -H -L ${retroarch}/data/cores/fbalpha_libretro.so ${retroarch}/roms/ssf2xjr1.zip && ${retroarch}/netplay-connect
- elif [[ $foo -eq 4 ]]; then
- retroarch && ${retroarch}/netplay-connect
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement