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

PDP-XI hades at elsewhere.org
Sun May 25 01:15:30 EDT 2003


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


-------------- next part --------------
? 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);
 


More information about the mythtv-dev mailing list