hng64: Hacked 3d acknowledge in a slightly different manner. Sams64 games now show 3d. [Andrew Gardner]

NOTES NOT IN WHATSNEW:
This makes all games in hng64.c display a good amount of 3d.
The read handler I modified definitely seems to have something to do with
the missing 3d in these games.  It's only read if the frame being drawn
is missing geometry.  My new hack is a lucky guess, but hopefully we'll
figure out what this function is really looking for sometime soon.

Snaps here: http://www.mameworld.info/ajg/
This commit is contained in:
Andrew Gardner 2010-01-05 05:36:06 +00:00
parent 7c1429be20
commit ff1891ea23

View File

@ -983,14 +983,12 @@ static READ32_HANDLER( tcram_r )
return hng64_tcram[offset];
}
/* Some games (namely sams64 after the title screen) tests bit 15 of this to be high, unknown purpose (vblank? related to the display list?). */
/* Some games (namely sams64 after the title screen) tests bit 15 of this to be high,
unknown purpose (vblank? related to the display list?). */
static READ32_HANDLER( unk_vreg_r )
{
static UINT32 toggle;
toggle^=0x8000;
return toggle | (mame_rand(space->machine) & 2);
return ++toggle;
}