From: Atari Ace [mailto:atari_ace@verizon.net]

Subject: [patch] Fix 01588 timecrsa, timecris: MAME simply quits after
pressing F3 in both sets, game cannot be runned

Hi mamedev,

This small patch fixes the crash in bug 01588 and seems to allow the
game to start in most cases.  In some cases in my testing the board
failed startup tests, but that appears to be unrelated.

~aa
This commit is contained in:
Aaron Giles 2008-04-21 00:03:51 +00:00
parent e26f80fde0
commit 7d9b9885a5

View File

@ -2217,6 +2217,12 @@ WRITE32_HANDLER( namcos22_paletteram_w )
dirtypal[offset&(0x7fff/4)] = 1;
}
static void namcos22_reset(running_machine *machine)
{
memset(&mSceneRoot, 0, sizeof(mSceneRoot));
mpFreeSceneNode = NULL;
}
static void namcos22_exit(running_machine *machine)
{
poly_free(poly);
@ -2243,6 +2249,7 @@ static VIDEO_START( common )
#else
poly = poly_alloc(4000, sizeof(poly_extra_data), 0);
#endif
add_reset_callback(machine, namcos22_reset);
add_exit_callback(machine, namcos22_exit);
}