sync with official

This commit is contained in:
dborth 2010-01-26 06:00:19 +00:00
parent 99e60ca35f
commit 98aedae304
3 changed files with 10 additions and 2 deletions

View File

@ -390,6 +390,8 @@ static void CheckHInfo(void)
0x1b084107d0878bd0LL, /* Startropics 2*/
0x836c0ff4f3e06e45LL, /* Zelda 2 */
0x82000965f04a71bbLL, /* Mirai Shinwa Jarvas */
0 /* Abandon all hope if the game has 0 in the lower 64-bits of its MD5 hash */
};

View File

@ -87,7 +87,8 @@ static void booga(int version)
void Mapper80_init(void)
{
SetWriteHandler(0x4020,0x7fff,Mapper80_write);
SetWriteHandler(0x4020,0x7eff,Mapper80_write);// 7f00-7fff battery backed ram inside mapper chip,
// controlled by 7ef8 register, A8 - enable, FF - disable (?)
MapStateRestore=booga;
isfu=0;
}

View File

@ -135,9 +135,14 @@ void MovieData::TryDumpIncremental()
{
currMovieData.insertEmpty(-1,1);
}
MovieData::dumpSavestateTo(&currMovieData.records[currFrameCounter].savestate,Z_DEFAULT_COMPRESSION);
currMovieData.greenZoneCount++;
} else if (currFrameCounter < currMovieData.greenZoneCount || !movie_readonly)
{
if (turbo && pauseframe-256>currFrameCounter && ((currFrameCounter-pauseframe)&0xff))
return;
MovieData::dumpSavestateTo(&currMovieData.records[currFrameCounter].savestate,Z_DEFAULT_COMPRESSION);
}
}
#endif