[mythtv] PATCH: mythgame patch for latest mame

Kyle Mestery kmestery at comcast.net
Sat Jan 10 09:56:40 EST 2004


This patch fixes mythgame and allows it to work with the
latest version of mame. Apparently the "-fullview" option
has been changed to "-fullscreen" instead. As well, the
"-nocursor" option has been removed and no longer applies.

Without this patch, myth won't start mame for me. With it,
it works. Not sure if older verisons need "-fullview" or
not, I don't have any old versions to test.

Kyle
-------------- next part --------------
Index: mamehandler.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythgame/mythgame/mamehandler.cpp,v
retrieving revision 1.24
diff -u -r1.24 mamehandler.cpp
--- mamehandler.cpp	9 Jan 2004 20:31:23 -0000	1.24
+++ mamehandler.cpp	10 Jan 2004 14:55:30 -0000
@@ -766,12 +766,12 @@
                 if (!strcmp(tmp, "37 BETA 4")) {
                         fullscreen = " -nocabview";
                 } else {
-                        fullscreen = " -fullview";
+                        fullscreen = " -fullscreen";
                 }
                 if (!strcmp(tmp, "37 BETA 5")) {
                         fullscreen = " -nocabview";
                 } else {
-                        fullscreen = " -fullview";
+                        fullscreen = " -fullscreen";
                 }
                 windowed = " -cabview";
                 winkeys = " -winkeys";
@@ -873,13 +873,7 @@
             *exec+= general_prefs.show_disclaimer ? " -noskip_disclaimer" : " -skip_disclaimer";
             *exec+= general_prefs.show_gameinfo ?" -noskip_gameinfo" : " -skip_gameinfo";
         }
-        /* the nocursor option doesn't apply to SDL builds of xmame */
-        if ( strcmp(general_prefs.xmame_display_target, "SDL")) {
-          *exec+= game_settings.fullscreen ? (" -nocursor" + fullscreen) : 
-                  windowed;
-        }
-        else
-          *exec+= game_settings.fullscreen ? fullscreen : windowed;
+        *exec+= game_settings.fullscreen ? fullscreen : windowed;
 
         if(!game_settings.default_options)
         {


More information about the mythtv-dev mailing list