Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: newoski on April 27, 2015, 11:23:12 pm

Title: Remove Nag Screens via Command Line?
Post by: newoski on April 27, 2015, 11:23:12 pm
Hi Guys,

I saw a post in the hidiff thread referencing a secret way to turn off nag screens via command line on MAMEUI, MESSUI, HBMAMEUI builds.

Is this possible? I've been Googling all night and can't find any info...

I'm trying to get HBMAME 0.160 going with nonag
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on June 06, 2015, 02:22:17 pm
Anybody?
Title: Re: Remove Nag Screens via Command Line?
Post by: bulbousbeard on June 06, 2015, 04:02:01 pm
Just compile your own HBMAME and remove them.
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on June 06, 2015, 04:14:45 pm
Not that simple. The diff files are compatible.
Title: Re: Remove Nag Screens via Command Line?
Post by: phulshof on June 06, 2015, 04:21:31 pm
If you don't mind having nonag on at all time it's a 1 line removal change in the MAME code.
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on June 06, 2015, 08:01:08 pm
Huh?

Sent from my HTC6535LVW using Tapatalk

Title: Re: Remove Nag Screens via Command Line?
Post by: bulbousbeard on June 07, 2015, 10:00:39 am
Not that simple. The diff files are compatible.

It really is that simple.
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on June 07, 2015, 10:14:04 am
From everything I've read and tested, it is not that simple.

The HBMAME is compiled using daily builds, so they never match up with official releases/diff files.

When trying to compile using HBMAME source files and the nonag/hiscore diff from the official thread, it errors out every single time
Title: Re: Remove Nag Screens via Command Line?
Post by: bulbousbeard on June 07, 2015, 10:35:11 am
From everything I've read and tested, it is not that simple.

The HBMAME is compiled using daily builds, so they never match up with official releases/diff files.

When trying to compile using HBMAME source files and the nonag/hiscore diff from the official thread, it errors out every single time

Don't use the nonag/highscore diff then. Just comment out the code yourself.
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on June 07, 2015, 10:39:59 am
Could you link me to instructions or let me know the section to code out?

I've been chasing this for a while now. I'd REALLY appreciate it!!
Title: Re: Remove Nag Screens via Command Line?
Post by: phulshof on June 07, 2015, 02:41:22 pm
On the road right now; I'll post the information tomorrow if someone doesn't beat me to it. 😀
Title: Re: Remove Nag Screens via Command Line?
Post by: phulshof on June 07, 2015, 04:16:33 pm
Could you link me to instructions or let me know the section to code out?

I've been chasing this for a while now. I'd REALLY appreciate it!!

In src/emu/ui/ui.c:
In the function void ui_manager::display_startup_screens(bool first_time, bool show_disclaimer):

Code: [Select]
        // disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,
        // or if we are debugging
//      if (!first_time || (str > 0 && str < 60*5) || &machine().system() == &GAME_NAME(___empty) || (machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
                show_gameinfo = show_warnings = show_disclaimer = show_mandatory_fileman = FALSE;

The if line is the one that needs to be commented out, as per the code above. It will make MAME always execute the second line, which sets all the show variables to false.
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on June 07, 2015, 04:36:01 pm
Thanks, but there's nothing like that in the HBMAME source files:

http://hbmame.1emulation.com/ (http://hbmame.1emulation.com/)

) :
Title: Re: Remove Nag Screens via Command Line?
Post by: phulshof on June 07, 2015, 05:00:35 pm
They must be more different than I thought then. I'll have a look at the code tomorrow to see if I can find how to fix it. I can't imagine it being that hard to find.
Title: Re: Remove Nag Screens via Command Line?
Post by: phulshof on June 07, 2015, 05:04:10 pm
Just checked github on my phone; the code is only slightly different, and is right where I said it was: https://github.com/Robbbert/hbmame/blob/master/src/emu/ui/ui.c
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on June 07, 2015, 05:36:37 pm
Hmmm... I downloaded directly from the site. Testing the link you just posted... if this works, I'll be one happy gamer!
Title: Re: Remove Nag Screens via Command Line?
Post by: phulshof on June 08, 2015, 01:40:11 am
As far as I can tell, the file containing artwork and sources are just the hbmame add-ons; you'll need to download (, make the change) and compile from github to get the full experience. :)
Title: Re: Remove Nag Screens via Command Line?
Post by: phulshof on June 12, 2015, 04:00:17 am
Any luck in making it work?
Title: Re: Remove Nag Screens via Command Line?
Post by: newoski on October 29, 2015, 12:37:36 pm
Any luck in making it work?

Sorry for the uber delayed reply. This didn't work for me. I see those lines in the github source, but when I download the official release source, the lines are not included... That location you pointed to doesn't exist in the folder structure from the official source download