Just compiled MAME without the OK screens for myself for the first time...it's really not as difficult as I thought. I'm not bragging just excited cause I'm not programmer!!!...more


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]

Posted by Bill W on 7, 2000 at 5:45 PM:

for those of you non programmers just follow the instructions at the official mame page

http://www.mame.net//compile.html

then make the following changes to the source code (by the way all the programs you need to compile can be found at the above site!!!)

in usrintf.c

in showgamewarnings()

}
foundworking = 1;

sprintf(&buf[strlen(buf)],"%s\n",drivers[i]->name);

to:

}
foundworking = 1;

//sprintf(&buf[strlen(buf)],"%s\n",drivers[i]->name);

------------------------------------------------

in showgamewarnings()

strcat(buf,ui_getstring (UI_typeok));

ui_displaymessagewindow(bitmap,buf);

done = 0;
do
{
update_video_and_audio();
osd_poll_joysticks();
if (input_ui_pressed(IPT_UI_CANCEL))
return 1;
if (code_pressed_memory(KEYCODE_O) || input_ui_pressed(IPT_UI_LEFT))
done = 1;
if (done == 1 && (code_pressed_memory(KEYCODE_K) || input_ui_pressed(IPT_UI_RIGHT)))
done = 2;
} while (done < 2);

}


osd_clearbitmap(bitmap);

/* clear the input memory */
while (code_read_async() != CODE_NONE) {};

while (displaygameinfo(bitmap,0) == 1)
{
update_video_and_audio();
osd_poll_joysticks();
}


to:

strcat(buf,ui_getstring (UI_typeok));

//ui_displaymessagewindow(bitmap,buf);

done = 0;
do
{
update_video_and_audio();
osd_poll_joysticks();
/*if (input_ui_pressed(IPT_UI_CANCEL))
return 1;
if (code_pressed_memory(KEYCODE_O) || input_ui_pressed(IPT_UI_LEFT))
done = 1;
if (done == 1 && (code_pressed_memory(KEYCODE_K) || input_ui_pressed(IPT_UI_RIGHT)))
done = 2;*/
} while (done < 0);

}


osd_clearbitmap(bitmap);

/* clear the input memory */
while (code_read_async() != CODE_NONE) {};

//while (displaygameinfo(bitmap,0) == 1)
//{
update_video_and_audio();
osd_poll_joysticks();
//}

------------------------------------------------------------------

in showcopyright()

ui_displaymessagewindow(bitmap,buf);

setup_selected = -1;////
done = 0;
do
{
update_video_and_audio();
osd_poll_joysticks();
if (input_ui_pressed(IPT_UI_CANCEL))
{
setup_selected = 0;////
return 1;
}
if (keyboard_pressed_memory(KEYCODE_O) || input_ui_pressed(IPT_UI_LEFT))
done = 1;
if (done == 1 && (keyboard_pressed_memory(KEYCODE_K) || input_ui_pressed(IPT_UI_RIGHT)))
done = 2;
} while (done < 2);

to:

//ui_displaymessagewindow(bitmap,buf);

setup_selected = -1;////
done = 0;
do
{
update_video_and_audio();
osd_poll_joysticks();
/*if (input_ui_pressed(IPT_UI_CANCEL))
{
setup_selected = 0;////
return 1;
}
if (keyboard_pressed_memory(KEYCODE_O) || input_ui_pressed(IPT_UI_LEFT))
done = 1;
if (done == 1 && (keyboard_pressed_memory(KEYCODE_K) || input_ui_pressed(IPT_UI_RIGHT)))
done = 2;*/
} while (done < 0);

**********************************

in common.c

in readroms()

if (warning || fatalerror)
{
extern int bailing;

if (fatalerror)
{
strcat (buf, "ERROR: required files are missing, the game cannot be run.\n");
bailing = 1;
}
else
strcat (buf, "WARNING: the game might not run correctly.\n");
printf ("%s", buf);

if (!options.gui_host && !bailing)
{
printf ("Press any key to continue\n");
keyboard_read_sync();
if (keyboard_pressed(KEYCODE_LCONTROL) && keyboard_pressed(KEYCODE_C))
return 1;
}
}

if (fatalerror) return 1;
else return 0;

to:

if (warning || fatalerror)
{
extern int bailing;

if (fatalerror)
{
strcat (buf, "ERROR: required files are missing, the game cannot be run.\n");
bailing = 1;
}
else
strcat (buf, "WARNING: the game might not run correctly.\n");
//printf ("%s", buf);

if (!options.gui_host && !bailing)
{
printf ("Press any key to continue\n");
/*keyboard_read_sync();
if (keyboard_pressed(KEYCODE_LCONTROL) && keyboard_pressed(KEYCODE_C))
return 1;*/
}
}

if (fatalerror) return 1;
else return 0;





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]