Created
September 21, 2016 12:22
-
-
Save superzadeh/66bf8b9066b985e7ddcc90315f5eb9b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /home/chip/roms | |
folderpath=$(ls) | |
system=$(eval zenity --list --column System $folderpath --width=480 --height=272) | |
if [ "$?" -eq 1 ]; then | |
echo "Cancelled." | |
else | |
cd $system | |
files=$(ls -Q) | |
rom=$(eval zenity --list --column "Roms" $files --width=480 --height=272) | |
if [ "$?" -eq 1 ]; then | |
echo "Cancelled." | |
else | |
mednafen -fs 1 "$rom" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment