#!/bin/bash title="VICE: Which emulator do you want to use ?" emulator_type=`matedialog --width="530" --height="375" --title="$title" --list --radiolist --column="Click Here" \ --column="Emulator Type" --column="Description" \ FALSE "x64" "C64 A fast Commodore 64 emulator"\ FALSE "x64dtv" "C64 Direct-to-TV (DTV) emulator"\ FALSE "x64sc" "C64 An accurate Commodore 64 emulator"\ FALSE "x128" "C128 emulator"\ FALSE "xvic" "VIC20 emulator"\ FALSE "xpet" "PET emulator"\ FALSE "xscpu64" "VICE C64 An accurate SuperCPU64 emulator"\ FALSE "xplus4" "PLUS4 emulator"\ FALSE "xcbm2" "CBM-II emulator"\ FALSE "xcbm5x0" "VICE CBM-II emulator"\ FALSE "vsid " "VICE SID Player"\ | sed 's/ max//g' ` echo "$emulator_type chosen as the Emulator Type!." #user must select a target type (Check if they cancelled) if [ ! "$emulator_type" ]; then exit fi ######### This part takes the selection and applies it! ############# if [ "$emulator_type" = "x64" ] then # Do x64 here. x64 elif [ "$emulator_type" = "x64dtv" ] then # Do x64dtv here. x64dtv elif [ "$emulator_type" = "x64sc" ] then # Do x64sc here. x64sc elif [ "$emulator_type" = "x128" ] then # Do x128 here. x128 elif [ "$emulator_type" = "xvic" ] then # Do xvic here. xvic elif [ "$emulator_type" = "xpet" ] then # Do xpet here. xpet elif [ "$emulator_type" = "xscpu64" ] then # Do xscpu64 here. xscpu64 elif [ "$emulator_type" = "xplus4" ] then # Do xplus4 here. xplus4 elif [ "$emulator_type" = "xcbm2" ] then # Do xcbm2 here. xcbm2 elif [ "$emulator_type" = "xcbm5x0" ] then # Do xcbm5x0 here. xcbm5x0 elif [ "$emulator_type" = "vcid" ] then # Do vcid here. vsid else #if [ "$exit_type" = "Cancel" ] #then # Do Cancel here. sleep 1 | matedialog --progress --percentage=95 --title=Cancelling Exit --auto-close --auto-kill --no-cancel --width=300 fi