Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Can I compile save/load onscreen messages out of mame?  (Read 2830 times)

0 Members and 1 Guest are viewing this topic.

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Can I compile save/load onscreen messages out of mame?
« 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.

wweumina

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 222
  • Last login:August 30, 2022, 04:56:31 am
Re: Can I compile save/load onscreen messages out of mame?
« Reply #1 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.

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Can I compile save/load onscreen messages out of mame?
« Reply #2 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.

wweumina

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 222
  • Last login:August 30, 2022, 04:56:31 am
Re: Can I compile save/load onscreen messages out of mame?
« Reply #3 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;
« Last Edit: April 22, 2010, 09:05:35 am by wweumina »

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Can I compile save/load onscreen messages out of mame?
« Reply #4 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. :)

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Can I compile save/load onscreen messages out of mame?
« Reply #5 on: April 25, 2010, 11:56:56 pm »
If anyone's interested, this worked perfectly!

rocket5147

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:January 16, 2023, 10:13:20 am
  • I want to build my own arcade controls!
Re: Can I compile save/load onscreen messages out of mame?
« Reply #6 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.