Previous 199869 Revisions Next

r21081 Friday 15th February, 2013 at 01:47:29 UTC by Ville Linde
drivers/jaguar.c: Removed cart protection hack.
[src/mame/drivers]jaguar.c

trunk/src/mame/drivers/jaguar.c
r21080r21081
593593 *
594594 *************************************/
595595
596// shouldn't the DSPs be doing this calc, why is this needed for Jaguar?
597596READ32_MEMBER(jaguar_state::gpuctrl_r)
598597{
599   UINT32 result = jaguargpu_ctrl_r(m_gpu, offset);
600
601   if (!m_is_cojag)
602   {
603      if (m_protection_check != 1) return result;
604
605      m_protection_check++;
606      m_gpu_ram[0] = 0x3d0dead;
607      return 0x80000000;
608   }
609   else
610      return result;
598   return jaguargpu_ctrl_r(m_gpu, offset);
611599}
612600
613601
614602WRITE32_MEMBER(jaguar_state::gpuctrl_w)
615603{
616   if (!m_is_cojag)
617      if ((!m_protection_check) && (offset == 5) && (data == 1)) m_protection_check++;
618
619604   jaguargpu_ctrl_w(m_gpu, offset, data, mem_mask);
620605}
621606

Previous 199869 Revisions Next


© 1997-2024 The MAME Team