Warning: The enclosed changes will void your M.A.M.E. warranty


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

Posted by Prefers to remain anonymous on 14, 2000 at 9:55 PM:

In Reply to: Just remove the code between the braces. Recompile and done. (NT) posted by shane on 14, 2000 at 4:56 PM:

The following changes to the source code will remove the ok and other notices.
WARNING!! WARNING!! WARNING!!!
With these modifications, Mame will not tell you about problems with the game or roms.
By making these modifications and compiling it yourself, you promise NOT to distribute the modified exe.


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 ]