Esempio n. 1
0
 public override void HardReset()
 {
     base.HardReset();
     base.Switch08KPRG(prg_08K_rom_mask, 0xE000, true);
     enable_mirroring_switch = enable_N106_sound = this.MapperNumber == 19;
     // This is not a hack, some games should be mapper 210 configured but assigned to mapper 19
     // TODO: find another way to setup Namcot 106 configurations for mapper 210 games
     switch (RomSHA1.ToUpper())
     {
     case "97E7E61EECB73CB1EA0C15AE51E65EA56301A685":    // Wagyan Land 2
     case "3D554F55411AB2DDD1A87E7583E643970DB784F3":    // Wagyan Land 3
     case "7FA51058307DB50825C2D3A3A98C0DA554BC3C92":    // Dream Master
     case "1C476C795CFC17E987C22FFD6F09BAF1396ED2C9":    // Family Circuit '91
     {
         enable_mirroring_switch = false;
         enable_N106_sound       = false;
         break;
     }
     }
     // TODO: Implement mapper 19 sound channels
     if (enable_N106_sound)
     {
         sound_channels = new Namcot106SoundChannel[8];
         for (int i = 0; i < 8; i++)
         {
             sound_channels[i] = new Namcot106SoundChannel(this);
             sound_channels[i].HardReset();
         }
         EXRAM           = new byte[128];
         soundReg        = 0;
         enabledChannels = 0;
         channelIndex    = 0;
     }
 }
Esempio n. 2
0
 public override void HardReset()
 {
     base.HardReset();
     base.Switch08KPRG(prg_08K_rom_mask, 0xE000, true);
     enable_mirroring_switch = enable_N106_sound = this.MapperNumber == 19;
     // This is not a hack, some games should be mapper 210 configured but assigned to mapper 19
     // TODO: find another way to setup Namcot 106 configurations for mapper 210 games
     switch (RomSHA1.ToUpper())
     {
         case "97E7E61EECB73CB1EA0C15AE51E65EA56301A685":// Wagyan Land 2
         case "3D554F55411AB2DDD1A87E7583E643970DB784F3":// Wagyan Land 3
         case "7FA51058307DB50825C2D3A3A98C0DA554BC3C92":// Dream Master
         case "1C476C795CFC17E987C22FFD6F09BAF1396ED2C9":// Family Circuit '91
             {
                 enable_mirroring_switch = false;
                 enable_N106_sound = false;
                 break;
             }
     }
     // TODO: Implement mapper 19 sound channels
     if (enable_N106_sound)
     {
         sound_channels = new Namcot106SoundChannel[8];
         for (int i = 0; i < 8; i++)
         {
             sound_channels[i] = new Namcot106SoundChannel(this);
             sound_channels[i].HardReset();
         }
         EXRAM = new byte[128];
         soundReg = 0;
         enabledChannels = 0;
         channelIndex = 0;
     }
 }