LinHES Forums
http://forums.linhes.org/

Do not upgrade XMAME to version 0.100
http://forums.linhes.org/viewtopic.php?f=17&t=6223
Page 1 of 1

Author:  steellis [ Wed Sep 28, 2005 11:49 am ]
Post subject:  Do not upgrade XMAME to version 0.100

I may have discovered an issue with mythgame. If you upgrade xmame to version 0.100 mythgame will detect the version as "not supported".

I took a look at the mythgame source and it appears the version detector subroutine uses only the first two characters after the decimal point to make sure xmame is newer that 0.38. This would be fine up to version 0.99 but now it sees the version as 0.10.

This reminds me of those Y2K coding issues ;-)

Regards,

Steve

Author:  lel [ Wed Sep 28, 2005 3:29 pm ]
Post subject: 

My xmame 0.90 wouldn't start either back then so I made a wrapper to work around the problem.


Code:
#!/bin/sh

# Wrapper to make MythTV use XMAME even if the supported version doesn't match

tmp=$@

while [ "$1" ]
do
  # MythGame passes a -nocheat before the last option which is the rom-name
  if [ "$1" = "-nocheat" ]; then
    shift
    /usr/games/xmame -rompath /mnt/wd60/Roms $1 -fullscreen -jdev /dev/js -jt 1 -ef 2 -skip_disclaimer -history_file /myth/games/xmame/history

    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/xmame $tmp
exit 0

Author:  Girkers [ Wed Sep 28, 2005 4:17 pm ]
Post subject: 

Wow, you guys can get xmame to work, how do you do it? What is your secret?

Author:  steellis [ Wed Sep 28, 2005 6:41 pm ]
Post subject:  Working :-)

Thanks Lel

I now have xmame running again, though it took more than a few attempts to place the wrapper in the right place.

Steve

Author:  lel [ Thu Sep 29, 2005 6:48 am ]
Post subject: 

Well, for the record then:
Save the script to disk as "xmame.sh" and let MythTv call it instead of the xmame-executable. It is configured in the options->games-screen in MythTv (somewhere, I don't remember out of my head).

Also note that you likely must change the path to your roms in the script.

The options passed to xmame can also be played with. The "-ef 2" is a filter to smooth pixelated graphics of typical 80s arcade games. It looks better, but uses more processing power too.

Author:  cesman [ Thu Sep 29, 2005 11:07 am ]
Post subject: 

I'll include this in the next release for that want to use newer version of xmame. It will be in usr/local/bin.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/