Main > Software Forum
Disabling OK-msg in mame?
delta:
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 ;)
SirPoonga:
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.
Relker:
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!
klutzo:
Arcade OS, FYI goes through all OK, and press to continue messages.
SirPoonga:
--- Quote ---Cool!
--- End quote ---