AxibugEmuOnline/References/virtuanessrc097-master/NES/Mapper/Mapper000.cpp
2024-08-05 17:58:53 +08:00

29 lines
1.6 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//////////////////////////////////////////////////////////////////////////
// Mapper000 //
//////////////////////////////////////////////////////////////////////////
void Mapper000::Reset()
{
switch( PROM_16K_SIZE ) {
default:
case 1: // 16K only
SetPROM_16K_Bank( 4, 0 );
SetPROM_16K_Bank( 6, 0 );
break;
case 2: // 32K
SetPROM_32K_Bank( 0 );
break;
}
DWORD crc = nes->rom->GetPROM_CRC();
if( crc == 0x4e7db5af ) { // Circus Charlie(J)
nes->SetRenderMethod( NES::POST_RENDER );
}
if( crc == 0x57970078 ) { // F-1 Race(J)
nes->SetRenderMethod( NES::POST_RENDER );
}
if( crc == 0xaf2bbcbc // Mach Rider(JU)
|| crc == 0x3acd4bf1 ) { // Mach Rider(Alt)(JU)
nes->SetRenderMethod( NES::POST_RENDER );
}
}