Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # run it!
  2. file $1 | grep -q "7-zip archive data"
  3. if [ "$?" -eq "0" ];
  4. then
  5. 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'`)
  6. if [ $? = 0 ]; then
  7. #zenity --info --title="$1" --text="Extracting ROM from 7z file, please wait..."
  8. ./util/7za e -y -o"/tmp/" "$1" "$FILEITEM"
  9. FILENAME="/tmp/$FILEITEM"
  10. ./snes9x $ARGS "$FILENAME"
  11. rm "$FILENAME"
  12. fi
  13. else
  14. ./snes9x $ARGS "$1"
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement