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: How to get rid of the ok screens?  (Read 2978 times)

0 Members and 1 Guest are viewing this topic.

Gradius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:February 04, 2008, 03:10:49 pm
  • I'm a llama!
How to get rid of the ok screens?
« on: February 13, 2006, 09:26:06 am »
With previous versions of MAME it was possible by editing the source, but not now. I've thought I could generate a cfg file for each file, but loading every game and writting ok would be a pain. Since all cfgs are the same but with the name of each game, I suppose it would be possible to automatically generate all the files. The problem is how to put the name of the file inside the file's text. If you know any website with all the cfgs, or better a way to do this more easily, please tell me.

SlyDog

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:September 08, 2006, 11:21:16 pm
Re: How to get rid of the ok screens?
« Reply #1 on: February 13, 2006, 10:00:50 am »
you can still edit the source code.  just change the lines that say "options skip_disclaimer & options skip_warning" both to "options skip_gameinfo" so you can set skip gameinfo to 1 (or just check the box in mame32) and it will skip the ok screen, the "not 100% emulated" warnings, and the info.

if you like the warnings, as some do, of course don't change that one, just change the disclaimer.

Gradius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:February 04, 2008, 03:10:49 pm
  • I'm a llama!
Re: How to get rid of the ok screens?
« Reply #2 on: February 13, 2006, 10:16:47 am »
WOW! Does that really work??? I'm eager to get home and try! Thanx!

Gradius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:February 04, 2008, 03:10:49 pm
  • I'm a llama!
Re: How to get rid of the ok screens?
« Reply #3 on: February 13, 2006, 10:23:57 am »
   /* if we didn't find a settings file, show the disclaimer */
   if (settingsloaded || options.skip_disclaimer || ui_display_copyright(artwork_get_ui_bitmap()) == 0)
   {
      /* show info about incorrect behaviour (wrong colors etc.) */
      if (options.skip_warnings || ui_display_game_warnings(artwork_get_ui_bitmap()) == 0)
      {
         /* show info about the game */
         if (options.skip_gameinfo || ui_display_game_info(artwork_get_ui_bitmap()) == 0)
         {

That's from mame.c

You mean I have to change exactly the 'options.skip_warnings' and the 'options.skip_warnings' strings with 'options.skip_disclaimer'?

Or do I have to change

if (settingsloaded || options.skip_disclaimer || ui_display_copyright(artwork_get_ui_bitmap()) == 0)

and

if (options.skip_warnings || ui_display_game_warnings(artwork_get_ui_bitmap()) == 0)

with

if (options.skip_gameinfo || ui_display_game_info(artwork_get_ui_bitmap()) == 0)

Thanx!

SithMaster

  • Lets see how happy you are when you need to use a lawn mower and it keeps turning off when you want to cut up zombies.
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1781
  • Last login:January 12, 2014, 03:52:59 pm
  • The brightest light casts the darkest shadow.
Re: How to get rid of the ok screens?
« Reply #4 on: February 13, 2006, 01:28:27 pm »
what can i use to modify the source notepad cause i really dont want to install c++ on my pc just to do that?
Back in MY day we lived on the moon and we had to build a rocket ship from scratch to get to the Earth before we suffocated.

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: How to get rid of the ok screens?
« Reply #5 on: February 13, 2006, 02:06:22 pm »
what can i use to modify the source notepad cause i really dont want to install c++ on my pc just to do that?

Notepad should work. A 'real' text editor like UltraEd or Crimson Editor (I like CrimsonEd) would be better though, so you can read the line numbers and display the code a little prettier.
Here's a good compiling guide:
http://www.mameworld.net/mrdo/compile.html

SlyDog

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:September 08, 2006, 11:21:16 pm
Re: How to get rid of the ok screens?
« Reply #6 on: February 13, 2006, 02:38:34 pm »
   /* if we didn't find a settings file, show the disclaimer */
   if (settingsloaded || options.skip_disclaimer || ui_display_copyright(artwork_get_ui_bitmap()) == 0)
   {
      /* show info about incorrect behaviour (wrong colors etc.) */
      if (options.skip_warnings || ui_display_game_warnings(artwork_get_ui_bitmap()) == 0)
      {
         /* show info about the game */
         if (options.skip_gameinfo || ui_display_game_info(artwork_get_ui_bitmap()) == 0)
         {

That's from mame.c

You mean I have to change exactly the 'options.skip_warnings' and the 'options.skip_warnings' strings with 'options.skip_disclaimer'?

Or do I have to change

if (settingsloaded || options.skip_disclaimer || ui_display_copyright(artwork_get_ui_bitmap()) == 0)

and

if (options.skip_warnings || ui_display_game_warnings(artwork_get_ui_bitmap()) == 0)

with

if (options.skip_gameinfo || ui_display_game_info(artwork_get_ui_bitmap()) == 0)

Thanx!

your second option
just change the word "disclaimer" to "gameinfo" and "warnings" to "gameinfo"

Gradius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:February 04, 2008, 03:10:49 pm
  • I'm a llama!
Re: How to get rid of the ok screens?
« Reply #7 on: February 13, 2006, 04:12:13 pm »
Yes, it works! Thanx.

I do not edit the lines manually. It was a pain, so I decided to automate all the changes and the compiling process. mame.c is not the only file I modify (for instance driver.h, win32ui.c, etc). I've made a menu under DOS with a big batch file that allow me to prepare the compilation, delete the compilation, apply changes, do it everything at once... I can do it with just one key. The downloaded sources and the modified files are stored in a folder and also the text replacements within files are previously programmed. The menu automatically compiles and moves the binaries to my MAME folder, as well as update the snaps, mameinfo, history, clrmame dats. Everything is hidden to the user and everything is clean an easy. It took me many days to program it, but now it's very confortable everytime I need to compile a new version.