From ff1891ea233028ee0bd091d1a9bf504eb3cd2cb1 Mon Sep 17 00:00:00 2001 From: Andrew Gardner Date: Tue, 5 Jan 2010 05:36:06 +0000 Subject: [PATCH] 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/ --- src/mame/drivers/hng64.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/hng64.c b/src/mame/drivers/hng64.c index 481916b97b5..ad1fd220cdb 100644 --- a/src/mame/drivers/hng64.c +++ b/src/mame/drivers/hng64.c @@ -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; }