Core: try to fix 64dd

This commit is contained in:
zilmar 2022-07-25 21:25:56 +09:30
parent 48db44710a
commit ba0ac0ebe5
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include <Project64-core\N64System\N64System.h>
#include <Project64-core\N64System\Mips\Register.h>
#include <Project64-core\N64System\N64Rom.h>
#include <Project64-core\N64System\SystemGlobals.h>
RomMemoryHandler::RomMemoryHandler(CN64System & System, CRegisters & Reg, CN64Rom & Rom) :
m_PC(Reg.m_PROGRAM_COUNTER),
@ -17,7 +18,10 @@ RomMemoryHandler::RomMemoryHandler(CN64System & System, CRegisters & Reg, CN64Ro
bool RomMemoryHandler::Read32(uint32_t Address, uint32_t & Value)
{
m_Reg.PI_CART_ADDR_REG = Address + 4;
if (g_DDRom == nullptr)
{
m_Reg.PI_CART_ADDR_REG = Address + 4;
}
if (m_RomWrittenTo)
{
Value = m_RomWroteValue;