View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Sep 28, 2005 11:49 am 
Offline
Joined: Wed Aug 31, 2005 8:19 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 3:29 pm 
Offline
Joined: Mon Feb 14, 2005 3:31 pm
Posts: 20
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 4:17 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Wow, you guys can get xmame to work, how do you do it? What is your secret?

_________________
Girkers


Top
 Profile  
 
 Post subject: Working :-)
PostPosted: Wed Sep 28, 2005 6:41 pm 
Offline
Joined: Wed Aug 31, 2005 8:19 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 29, 2005 6:48 am 
Offline
Joined: Mon Feb 14, 2005 3:31 pm
Posts: 20
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 29, 2005 11:07 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
I'll include this in the next release for that want to use newer version of xmame. It will be in usr/local/bin.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu