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: Disabling OK-msg in mame?  (Read 5106 times)

0 Members and 1 Guest are viewing this topic.

delta

  • Guest
  • Trade Count: (0)
Disabling OK-msg in mame?
« on: March 21, 2002, 04:30:24 pm »
Is the any way to get rid of the "type OK to agrre"-message for each game in mame?

A little annoying to have that in the cab, specially when having to keyboard *inside* the cab ;)
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Disabling OK-msg in mame?
« Reply #1 on: March 21, 2002, 04:44:59 pm »
First, you can push left then right on player one joystick.
It is in the mame faq:)

Otherwise recompile mame.  It isn't hard to do.  First setup your computer and do a normail compile according to the instructions at mame.net.
Once you have a working EXE you can do changes and recompile.

To get rid of the OK:
Open mame.c in a text editor
Find the section

                       if (settingsloaded == 0)
                       {
                             /* if there is no saved config, it must be first time we run this game, */
                             /* so show the disclaimer. */
                             if (showcopyright(real_scrbitmap)) goto userquit;
                       }

                       if (showgamewarnings(real_scrbitmap) == 0)      /* show info about incorrect behaviour (wrong colors etc.) */
                       {
...
                       }

userquit:

Comment out those lines by puttin a // in front of each line.  So it will be like this:

//                        if (settingsloaded == 0)
//                        {
                             /* if there is no saved config, it must be first time we run this game, */
                             /* so show the disclaimer. */
//                              if (showcopyright(real_scrbitmap)) goto userquit;
//                        }

//                        if (showgamewarnings(real_scrbitmap) == 0)      /* show info about incorrect behaviour (wrong colors etc.) */
//                        {
                             init_user_interface();

                             /* disable cheat if no roms */
                             if (!gamedrv->rom) options.cheat = 0;

                             if (options.cheat) InitCheat();

                             if (Machine->drv->nvram_handler)
                             {
                                   void *f;

                                   f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_NVRAM,0);
                                   (*Machine->drv->nvram_handler)(f,0);
                                   if (f) osd_fclose(f);
                             }

                             cpu_run();            /* run the emulation! */

                             if (Machine->drv->nvram_handler)
                             {
                                   void *f;

                                   if ((f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_NVRAM,1)) != 0)
                                   {
                                         (*Machine->drv->nvram_handler)(f,1);
                                         osd_fclose(f);
                                   }
                             }

                             if (options.cheat) StopCheat();

                             /* save input ports settings */
                             save_input_port_settings();
//                        }

//userquit:


Save, then just recompile mame again.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

Relker

  • Guest
  • Trade Count: (0)
Re: Disabling OK-msg in mame?
« Reply #2 on: March 21, 2002, 06:58:29 pm »
Cool!  Thanks for the info.  I have a question if you don't mind.  

Is there a way to compile Mame so that the display size stays the same? Or maybe limit the resolution?

There are some games that I play that are huge.  I can only see about a quarter of the screen.  This is for Dos only, the windows version works fine.

Thanks!
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

klutzo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:May 27, 2005, 10:31:21 am
  • VIsit the Klutzoplex! www.klutzoplex. com
    • the klutzoplex
Re: Disabling OK-msg in mame?
« Reply #3 on: March 21, 2002, 08:17:33 pm »
Arcade OS, FYI goes through all OK, and press to continue messages.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »
klutzo

game geek, ht geek, all round geek

feel free to visit the Klutzoplex!  www.Klutzoplex.com

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: Disabling OK-msg in mame?
« Reply #4 on: March 21, 2002, 08:20:41 pm »
Quote
Cool!
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

jm

  • Guest
  • Trade Count: (0)
Re: Disabling OK-msg in mame?
« Reply #5 on: March 22, 2002, 03:26:36 pm »
Is there anyway to disable ok in mame32?  thanks!
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

ArcadeFX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 188
  • Last login:November 10, 2004, 11:16:56 pm
  • All the Dude ever wanted was his rug back!
    • ArcadeFX
Re: Disabling OK-msg in mame?
« Reply #6 on: March 22, 2002, 07:16:04 pm »
Yea, recompile as mentioned above.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »