[mythtv] [patch] mythgame: small fix to make it compatible with
mame version 0.87
mythtv at zwanebloem.nl
mythtv at zwanebloem.nl
Thu Oct 14 20:15:58 UTC 2004
Hi,
Options sound and mouse are no longer recognised by mame 0.87 so I added
a check for that.
Regards,
Tommy
-------------- next part --------------
Index: mythgame/mythgame/mamehandler.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythgame/mythgame/mamehandler.cpp,v
retrieving revision 1.32
diff -u -r1.32 mamehandler.cpp
--- mythgame/mythgame/mamehandler.cpp 7 Sep 2004 02:50:38 -0000 1.32
+++ mythgame/mythgame/mamehandler.cpp 14 Oct 2004 20:04:18 -0000
@@ -913,12 +913,14 @@
*exec+= vectoropts;
*exec+= vectorres;
*exec+= game_settings.analog_joy ? " -analogstick" : " -noanalogstick";
- *exec+= game_settings.mouse ? " -mouse" : " -nomouse";
+ if(general_prefs.xmame_minor<87){
+ *exec+= game_settings.mouse ? " -mouse" : " -nomouse";
+ *exec+= game_settings.sound ? " -sound" : " -nosound";
+ }
*exec+= game_settings.winkeys ? winkeys : nowinkeys;
*exec+= game_settings.grab_mouse ? grabmouse : nograbmouse;
*exec+= " -joytype ";
*exec+= joytype;
- *exec+= game_settings.sound ? " -sound" : " -nosound";
*exec+= game_settings.samples ? " -samples" : " -nosamples";
*exec+= game_settings.fake_sound ? " -fakesound" : "";
*exec+= " -volume ";
More information about the mythtv-dev
mailing list