#!/bin/sh # Wrapper to make MythTV use XMAME even if the supported version doesn't match tmp=$@ echo $@ >> /home/mythtv/xmame.cmd while [ "$1" ] do # MythGame passes a -nocheat before the last option which is the rom-name if [ "$1" = "-nocheat" ]; then shift #-jdev /dev/js -jt 1 /usr/games/bin/xmame $1 -log /home/mythtv/xmame.debug -rompath /share/xmame/roms -fullscreen -ef 2 -skip_disclaimer -jt 1 -jdev /dev/input/js_madcatz2 exit 0 # return fake version elif [ "$1" = "-version" ]; then echo "xmame (x11) version 0.97 (Jan 22 2005)" exit 0 fi shift done # perform whatever was asked for in all other cases /usr/games/bin/xmame -log /home/mythtv/xmame.debug $tmp exit 0