[mythtv] [PATCH] Trivial kludge to get mythgame working with xmame
0.84+
Jon
mythtv at groundglass.ca
Tue Aug 17 08:49:07 EDT 2004
This is just a simple single-line workaround to get mythgame working
with 0.84+ of xmame until such time as support for the new -listxml
switch is added.
You will need the xml2info program (in the xmame-0.85/src directory of
the xmame distribution) compiled and installed in /usr/local/bin for the
workaround. It needs to be compiled separately, as it isn't taken care
of in the xmame make. I had to add -lexpat to the suggested compile
flags get it to compile on Mandrake 10.0 Official.
All this patch does is change the -listinfo switch to -listxml and pipe
it through the xml2info utility to convert it back to the format
mythgame can handle. It's just a quick and dirty kludge, but it does the
trick for me. The diff is taken from the August 17 mythgame cvs,
although applying to older versions should be trivial.
--- mythgame/mythgame/mamehandler.cpp 2004-06-25 19:04:15.000000000 -0400
+++ mythgame.patched/mythgame/mamehandler.cpp 2004-08-16
22:59:53.000000000 -0400
@@ -170,7 +170,7 @@
/* Generate the list */
VERBOSE(VB_ALL, QString("This version of xmame supports
%1 games... "
"Getting the
list.").arg(supported_games));
- makecmd_line("-listinfo 2>/dev/null", &infocmd, romPath);
+ makecmd_line("-listxml | /usr/local/bin/xml2info
2>/dev/null", &infocmd, romPath);
xmame_info = popen(infocmd, "r");
VERBOSE(VB_ALL, "Verifying the installed games.");
Cheers.
-----
Jon
http://groundglass.ca
-------------- next part --------------
--- mythgame/mythgame/mamehandler.cpp 2004-06-25 19:04:15.000000000 -0400
+++ mythgame.patched/mythgame/mamehandler.cpp 2004-08-16 22:59:53.000000000 -0400
@@ -170,7 +170,7 @@
/* Generate the list */
VERBOSE(VB_ALL, QString("This version of xmame supports %1 games... "
"Getting the list.").arg(supported_games));
- makecmd_line("-listinfo 2>/dev/null", &infocmd, romPath);
+ makecmd_line("-listxml | /usr/local/bin/xml2info 2>/dev/null", &infocmd, romPath);
xmame_info = popen(infocmd, "r");
VERBOSE(VB_ALL, "Verifying the installed games.");
More information about the mythtv-dev
mailing list