Done!
There's 2 versions.
mame_no_nag.exe and
mame_no_warn.exeThe mame_no_nag.exe just has the nag screen disabled. The mame_no_warn.exe has the nag screen disabled PLUS it has the warn screen disabled (for things like games that don't have sound support, etc.).
Just download these and rename the one you want to use to mame.exe.
Here's how the code was changed (if anyone wants to do this on their version that doesn't support the command line option to turn it off)...
The only file you have to modify is 'usrintrf.c' (which I assume means "user interface"). Open the file in Wordpad (it's too big for Notepad) or any other text editor and search for "int showcopyright" and you should see something like this line...
int showcopyright(struct osd_bitmap *bitmap)
You want to comment out everything between the "int done;" line and the "setup_selected = 0;" line at the end of that function (so add the lines with "nonag" in them)...
int showcopyright(struct osd_bitmap *bitmap)
{
/*nonag
int done;
.
.
.
} while (done < 2);
nonag*/
setup_selected = 0;////
erase_screen(bitmap);
update_video_and_audio();
return 0;
}
...then search for "int showgamewarnings" and comment out everything between the "int i;" and "while (done < 2);" like this (add the lines with "nowarn" in them)...
int showgamewarnings(struct osd_bitmap *bitmap)
{
/*nowarn
int i;
.
.
.
done = 2;
} while (done < 2);
}
nowarn*/
...then go down a few lines and comment out the "while (displaygameinfo(bitmap,0) == 1)" loop like so (add the lines with "nonag" in them)...
/* clear the input memory */
while (code_read_async() != CODE_NONE) {};
/*nonag
while (displaygameinfo(bitmap,0) == 1)
{
update_video_and_audio();
}
nonag*/
...if you are building the MESS version, scroll down a couple of lines and comment out the "while (displayimageinfo(bitmap,0) == 1)" line inside the #ifdef MESS line (add the lines with "nonag" in them)...
#ifdef MESS
/*nonag
while (displayimageinfo(bitmap,0) == 1)
{
update_video_and_audio();
}
nonag*/
#endif
...save the file, then run "make" to rebuild mame.exe (or dmame.exe for newer versions of MAME).
If you want to skip the nag screen but still want to see warnings, just don't put in the "/*nowarn" and "nowarn*/" lines.