Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # run it!
- file $1 | grep -q "7-zip archive data"
- if [ "$?" -eq "0" ];
- then
- FILEITEM=$(eval zenity --width=800 --height=400 --list --title="Which\ ROM?" --column="Name" `./util/7za l -slt "$1" | grep ^Path | sed -e's/^Path = /"/g' -e's/$/"/' | sed '1d'`)
- if [ $? = 0 ]; then
- #zenity --info --title="$1" --text="Extracting ROM from 7z file, please wait..."
- ./util/7za e -y -o"/tmp/" "$1" "$FILEITEM"
- FILENAME="/tmp/$FILEITEM"
- ./snes9x $ARGS "$FILENAME"
- rm "$FILENAME"
- fi
- else
- ./snes9x $ARGS "$1"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement