[mythtv-users] Joystick usage with mythtv & PC games

Jesse Guardiani jesse at wingnet.net
Thu Feb 9 16:43:54 UTC 2006


Carl Fongheiser wrote:
> On 2/9/06, *Jesse Guardiani* <jesse at wingnet.net 
> <mailto: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);

True. I wrote the shell script before I realized I needed to patch mythgame,
so I guess I never put two and two together. The script is still useful 
for those using
binary distros though.

-- 
Jesse Guardiani
Programmer/Sys Admin
jesse at wingnet.net



More information about the mythtv-users mailing list