[mythtv-users] Joystick usage with mythtv & PC games
Carl Fongheiser
carlfongheiser at gmail.com
Thu Feb 9 16:29:50 UTC 2006
On 2/9/06, Jesse Guardiani <jesse at wingnet.net> wrote:
>
>
> Well, if you can't wait, you can always use my shell script to work
> around the problem. I run
> xmame-0.102 with mythgame 0.18.1 and the attached script as a "wrapper"
> to xmame.
>
> Just make the script executable on your machine, and modify line 13 to
> suite your needs. Then
> point mythgame to the script instead of the real xmame binary and you
> should be fine.
>
> NOTE: If you're using joystick support in MythTV 0.18.1 then you'll
> probably want to patch
> mythplugins with the attached mythplugins.patch. It mutes MythTV's
> joystick event loop while
> your games are running, so your joystick events don't reply in mass when
> you exit the game.
> (0.19 will include a similar patch, I think) If you're running Gentoo, I
> have attached an ebuild
> for MythGame that includes the patch.
As long as you're patching mamehandler.cpp, you might as well directly fix
the root cause of the version problem. Right around line 675, you change
the existing:
/* See if xmame is new enough. */
versionchk_string = (char*)malloc(3);
snprintf(versionchk_string, 3, "%s",
minor);
to:
/* See if xmame is new enough. */
versionchk_string = (char*)malloc(4);
snprintf(versionchk_string, 4, "%s",
minor);
Carl Fongheiser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060209/ae08abca/attachment-0001.htm
More information about the mythtv-users
mailing list