Useful scripts I have built
1. mame
This one is used to start xmame in full screen with all the right sound options
#!/bin/bash
xmame -x11 1 -sound -samples -audiodevice '/dev/audio' -mixerdevice '/dev/mixer' -alsa-pcm 'default' -dsp-plugin 'oss' -sound-mixer-plugin 'oss' $1
2. zxspectrum
I had all my zx spectrums games in zip archives, this script unzips them and calls xspect (linux spectrum emulator) with the unzipped game as its argument
#!/bin/bash
mkdir /tmp/zx
if [ $# -gt 0 ]; then
echo "Usage: zxspectrum"
fi
unzip $1 -d /tmp/zx
game=$(ls /tmp/zx/ | grep .*.'[tT]''[zZaA]''[pPxX]')
newgame=$(echo $game | sed -e 's/ /\_/g')
mv "/tmp/zx/$game" /tmp/zx/$newgame
zxgame=/tmp/zx/$newgame
xspect $zxgame
rm -r -f /tmp/zx
3.
This one is used to start xmame in full screen with all the right sound options
#!/bin/bash
xmame -x11 1 -sound -samples -audiodevice '/dev/audio' -mixerdevice '/dev/mixer' -alsa-pcm 'default' -dsp-plugin 'oss' -sound-mixer-plugin 'oss' $1
2. zxspectrum
I had all my zx spectrums games in zip archives, this script unzips them and calls xspect (linux spectrum emulator) with the unzipped game as its argument
#!/bin/bash
mkdir /tmp/zx
if [ $# -gt 0 ]; then
echo "Usage: zxspectrum
fi
unzip $1 -d /tmp/zx
game=$(ls /tmp/zx/ | grep .*.'[tT]''[zZaA]''[pPxX]')
newgame=$(echo $game | sed -e 's/ /\_/g')
mv "/tmp/zx/$game" /tmp/zx/$newgame
zxgame=/tmp/zx/$newgame
xspect $zxgame
rm -r -f /tmp/zx
3.

0 Comments:
Post a Comment
<< Home