xmame  

-nowarn patch

smithc
Tue, 12 Dec 2000 18:55:56 -0800

I recently became frustrated with an
arcade machine I built for my family.
It sits in a cabinet and has an arcade
joystick.  On several games I received
warnings about cocktail flipping and the
likes which made me press 'OK'.  This
was a bit of a pain because the main use
for both the frontend and the games was
an arcade joystick.

So I wrote this quick little patch that
allows you to use -[no]warn to
disable/enable
the warnings.  I thought this may be of
use to some of you as well.  (There is
also
an attachment)

--- mame.h      Wed Sep 13 14:49:53 2000

+++ ../../../xmame-0.37b7.1/src/mame.h
Tue Dec 12 17:36:05 2000
@@ -83,6 +83,7 @@
        int mame_debug;
        int cheat;
        int gui_host;
+       int warn;

        int samplerate;
        int use_samples;
--- usrintrf.c  Wed Sep 13 14:49:41 2000

+++
../../../xmame-0.37b7.1/src/usrintrf.c
Tue Dec 12 18:39:47 2000
@@ -2298,9 +2298,9 @@
        int i;
        char buf[2048];

-       if (Machine->gamedrv->flags &
+       if ((Machine->gamedrv->flags &

(GAME_NOT_WORKING |
GAME_UNEMULATED_PROTECTION |
GAME_WRONG_COLORS | GA
ME_IMPERFECT_COLORS |
-                         GAME_NO_SOUND
| GAME_IMPERFECT_SOUND |
GAME_NO_COCKTAIL))
+                         GAME_NO_SOUND
| GAME_IMPERFECT_SOUND |
GAME_NO_COCKTAIL)) && options.
warn)
        {
                int done;

--- unix/config.c       Wed Sep 13
18:06:42 2000
+++
../../../xmame-0.37b7.1/src/unix/config.c
Tue Dec 12 17:55:36 2000
@@ -101,6 +101,9 @@
    { "cheat",
"c",                    rc_bool,
&options.cheat,
      "0",
0,                      0,
NULL,
      "Enable/disable cheat subsystem"
},
+   { "warn",
"wn",                   rc_bool,
&options.warn,
+      "1",
0,                      0,
NULL,
+      "Enable/disable ROM warnings" },
 #ifdef MAME_DEBUG
    { "debug",
"d",                    rc_bool,
&options.mame_debug,
      NULL,
0,                      0,
NULL,

---End of Patch----

Craig Smith
--- mame.h      Wed Sep 13 14:49:53 2000
+++ ../../../xmame-0.37b7.1/src/mame.h  Tue Dec 12 17:36:05 2000
@@ -83,6 +83,7 @@
        int mame_debug;
        int cheat;
        int gui_host;
+       int warn;
 
        int samplerate;
        int use_samples;
--- usrintrf.c  Wed Sep 13 14:49:41 2000
+++ ../../../xmame-0.37b7.1/src/usrintrf.c      Tue Dec 12 18:39:47 2000
@@ -2298,9 +2298,9 @@
        int i;
        char buf[2048];
 
-       if (Machine->gamedrv->flags &
+       if ((Machine->gamedrv->flags &
                        (GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | 
GAME_WRONG_COLORS | GAME_IMPERFECT_COLORS |
-                         GAME_NO_SOUND | GAME_IMPERFECT_SOUND | GAME_NO_COCKTAIL))
+                         GAME_NO_SOUND | GAME_IMPERFECT_SOUND | GAME_NO_COCKTAIL)) && 
+options.warn)
        {
                int done;
 
--- unix/config.c       Wed Sep 13 18:06:42 2000
+++ ../../../xmame-0.37b7.1/src/unix/config.c   Tue Dec 12 17:55:36 2000
@@ -101,6 +101,9 @@
    { "cheat",          "c",                    rc_bool,        &options.cheat,
      "0",              0,                      0,              NULL,
      "Enable/disable cheat subsystem" },
+   { "warn",           "wn",                   rc_bool,        &options.warn,
+      "1",             0,                      0,              NULL,
+      "Enable/disable ROM warnings" },
 #ifdef MAME_DEBUG     
    { "debug",          "d",                    rc_bool,        &options.mame_debug,
      NULL,             0,                      0,              NULL,
  • -nowarn patch smithc