2 #Path to your Roms if you want to disable the menu
3 #LOCATION=/mnt/card/games/snes
6 if test -e /root/Settings/opie-sh-snes.conf
8 LOCATION="`cat /root/Settings/opie-sh-snes.conf`"
10 echo "/mnt/card/games/snes" > /root/Settings/opie-sh-snes.conf
11 #Enable Menu Rom Finder
12 LOCATION="` opie-sh -i -t "Path to Roms" -g -E -l -F /root/Settings/opie-sh-snes.conf `"
13 ! test -z "$LOCATION" && echo $LOCATION > /root/Settings/opie-sh-snes.conf
16 echo "LOCATION = [$LOCATION]"
17 if [ "$LOCATION" = "" ]; then exit; fi
20 #Load a game from your list
21 ROM=` cd "$LOCATION" ; ls -1 *.zip \
22 | opie-sh -i -l -t "Snes9x" -F -g `
23 if [ "$ROM" = "" ]; then exit; fi
29 opie-sh -m -t "Sound" \
30 -M "Do you want sound?" \
36 1) SOUND="-nosound" ;;
39 echo "SOUND = [$SOUND] / RC = [$?]"
47 if [ "$SOUND" = "" ]; then exit; fi
50 snes9x $SOUND "$LOCATION/$ROM"