Re: The EASY(er) way! .. Even Better Maybe!


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]

Posted by Richard Ragon on 20, 2000 at 12:33 PM:

In Reply to: Re: The EASY way! posted by Stan on 15, 2000 at 7:42 PM:

: Isn't the easiest way to get rid of the warning and OK screens by using START->Search->For Files or Folders...
: Place:
: showgamewarnings();
: and or,
: showcopyright();
: in the containing text field and point it to the source directory. In each file locate those lines and comment them out with a //
: save and compile.

Wow.. It's a good thing you guys aren't in charge of the MAME source code. HAHAHA..

Commenting out whole functions are NOT a good idea because the compiler will be looking for this function defined within the preprocessor. Here's an even easier way to do it (and a small explication), without having adverse affects on the compile and possibly your program.

This part of the code exercises what's called a Do-While loop. I looks something like this..

do
{
... blah blah blah
}
while ();

Basically it does what's inside the {} brackets until what's inside the ( ) brackets are true. The program here is looking for the done variable to count up too 2, and then move on once the statement inside the "( )" returns false. The done variable is initialized at 0 when it starts the loop. Pressing "O" will make the done variable go to 1, and then pressing "K" will make the done variable go to 2 thus making the statement false, and the program moves on.

Ok, knowing all this... just replace the 2 with a 0 in the "while ( done < 2); line will make this whole thing bypass because it returns true the minute it enters this loop..

p.s. Disclaimer: Doing this obviously violates the MAME license agreement, and if you know MAME well enough to be messing with the source code in this manner, you take full responsibility for your actions, and understand the reason for the warning message in the first place.

--
-Richard Ragon/CEO HotRod Joystick
----------------------------
http://www.HanaHo.com - HanaHo Games, Inc.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]