[Rom] Use IsLoadedRomDDIPL

This commit is contained in:
LuigiBlood 2019-08-11 13:35:49 +02:00
parent 037a7e2346
commit b2f0623746
1 changed files with 2 additions and 2 deletions
Source/Project64-core/N64System

View File

@ -640,7 +640,7 @@ bool CN64Rom::LoadN64Image(const char * FileLoc, bool LoadBootCodeOnly)
CalculateCicChip();
uint32_t CRC1, CRC2;
if (m_CicChip == CIC_NUS_8303 || m_CicChip == CIC_NUS_DDUS || m_CicChip == CIC_NUS_DDTL)
if (IsLoadedRomDDIPL())
{
//Handle CRC differently if 64DD IPL
CRC1 = (*(uint16_t *)(&m_ROMImage[0x608]) << 16) | *(uint16_t *)(&m_ROMImage[0x60C]);
@ -798,7 +798,7 @@ bool CN64Rom::LoadN64ImageIPL(const char * FileLoc, bool LoadBootCodeOnly)
CalculateCicChip();
uint32_t CRC1, CRC2;
if (m_CicChip == CIC_NUS_8303 || m_CicChip == CIC_NUS_DDUS || m_CicChip == CIC_NUS_DDTL)
if (IsLoadedRomDDIPL())
{
//Handle CRC differently if 64DD IPL
CRC1 = (*(uint16_t *)(&m_ROMImage[0x608]) << 16) | *(uint16_t *)(&m_ROMImage[0x60C]);