The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: nitz on April 21, 2010, 09:30:03 pm

Title: Can I compile save/load onscreen messages out of mame?
Post by: nitz on April 21, 2010, 09:30:03 pm
Wondering if anyone could give me advice on this. Basically I want to load save states to skip startup screens in some games, but don't really want to see the "State sucessfully loaded" message pop up everytime - kinda just screams "PC running an emulator" and is thus a slight experience killer. I know about the fast forward button, but that doesn't seem to help that much - cassette game load times are still cumbersome even with the fast forward on my PC. I'm thinking there is probably a way to get rid of these onscreen messages when compiling mame, but I'd have no idea how to do it. I have compiled mame for high score/no nag, but I really don't know what to do for a custom thing like this. If anyone could tell me how to do it, or even just tell me what kind of thing I should be looking for, that'd be awesome! Tks.
Title: Re: Can I compile save/load onscreen messages out of mame?
Post by: wweumina on April 21, 2010, 11:03:10 pm
Before your next compile, do a search in the source for that text. Changing it to an empty string should work.
Title: Re: Can I compile save/load onscreen messages out of mame?
Post by: nitz on April 21, 2010, 11:30:53 pm
Thanks wweumina! I thought it might be something that simple, but wanted to ask someone before I went to the trouble. Hmmm, I wonder if the box the message is in would still pop up though...Guess I'll give it a try on my next compile and see what happens.
Title: Re: Can I compile save/load onscreen messages out of mame?
Post by: wweumina on April 22, 2010, 08:59:40 am
I just got home and checked.  What you are looking for is in the mame.c file.

The code currently says:

case STATERR_NONE:
            if (!(machine->gamedrv->flags & GAME_SUPPORTS_SAVE))
               popmessage("State successfully loaded.\nWarning: Save states are not officially supported for this game.");
            else
               popmessage("State successfully loaded.");
            break;

Just delete the 4 lines above the

'break;'

and recompile and you should be good.

Just to be clear it should read:

case STATERR_NONE:
            break;
Title: Re: Can I compile save/load onscreen messages out of mame?
Post by: nitz on April 22, 2010, 08:40:41 pm
Hey hey! Thanks again!  :applaud: That saves me some time figuring out where to look for that. I'm gonna be trying this in the near future, will post the results here when I do. :)
Title: Re: Can I compile save/load onscreen messages out of mame?
Post by: nitz on April 25, 2010, 11:56:56 pm
If anyone's interested, this worked perfectly!
Title: Re: Can I compile save/load onscreen messages out of mame?
Post by: rocket5147 on October 05, 2022, 12:27:47 pm
I just got home and checked.  What you are looking for is in the mame.c file.

The code currently says:

case STATERR_NONE:
            if (!(machine->gamedrv->flags & GAME_SUPPORTS_SAVE))
               popmessage("State successfully loaded.\nWarning: Save states are not officially supported for this game.");
            else
               popmessage("State successfully loaded.");
            break;

Just delete the 4 lines above the

'break;'

and recompile and you should be good.

Just to be clear it should read:

case STATERR_NONE:
            break;

I am trying to achieve what has been done here in this thread and noticed you previously suggested a way to do this, but upon trying on any modern versions of MAME, this no longer exists (or at least not in the same place).  Is there any way to achieve the same thing still?  I have tried to compile my own using an old version of MAME source but keep getting all sorts of errors!

Any help would be much appreciated.  Happy to put in some work with some direction.