[mythtv] [patch] making mythgame work with xmame 0.68.1

dan dan at milkcarton.com
Sun May 25 20:14:01 EDT 2003


If this patch won't work with pervious versions of xmame, then perhaps 
you should check what version of xmame is being used?  You can use 
"general_prefs.xmame_major" to get the major version and act accordingly

-dan


PDP-XI wrote:

>Attached is a patch to make mythgame work with the most recent xmame,
>which appears to have changed what -verifyroms does. If you apply this
>patch, mythgame probably won't work with previous versions of xmame; I
>don't know if they have the -verifysets option or not.
>
>--Josh
>
>
>  
>
>------------------------------------------------------------------------
>
>? mame68.diff
>Index: mythgame/mamehandler.cpp
>===================================================================
>RCS file: /var/lib/mythcvs/mythgame/mythgame/mamehandler.cpp,v
>retrieving revision 1.14
>diff -u -r1.14 mamehandler.cpp
>--- mythgame/mamehandler.cpp	6 Mar 2003 15:34:07 -0000	1.14
>+++ mythgame/mamehandler.cpp	25 May 2003 07:10:41 -0000
>@@ -117,7 +117,7 @@
>         makecmd_line("-listinfo 2>/dev/null", &infocmd, NULL);
>         xmame_info = popen(infocmd, "r");
> 
>-        makecmd_line("-verifyroms 2>/dev/null", &vrfycmd, NULL);
>+        makecmd_line("-verifysets 2>/dev/null", &vrfycmd, NULL);
>         xmame_vrfy = popen(vrfycmd, "r");
> 
>         makecmd_line("-listsourcefile 2>/dev/null", &drvcmd, NULL);
>@@ -347,7 +347,8 @@
>                                 rom->setWorking(FALSE);
>                         }
>                         tmp_array.clear();
>-                        if (!strcmp(status, "correct\n"))
>+			if (strstr(status, "good\n") ||
>+			    strstr(status, "best available\n"))
>                         {
>                             rom->setStatus(CORRECT);
> 
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>mythtv-dev mailing list
>mythtv-dev at snowman.net
>http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-dev
>  
>




More information about the mythtv-dev mailing list