[Debugger] When changing memory in viewer, clear memory based of physical address

This commit is contained in:
zilmar 2018-04-04 03:28:46 +10:00
parent 9dd0b06bd6
commit d9aedd84eb
1 changed files with 2 additions and 6 deletions

View File

@ -371,13 +371,9 @@ LRESULT CDebugMemoryView::OnMemoryModified(LPNMHDR lpNMHDR)
ProtectMemory(ROM, g_Rom->GetRomSize(), MEM_READONLY);
}
}
if (g_Recompiler != NULL && m_DataVAddrr)
if (g_Recompiler != NULL)
{
g_Recompiler->ClearRecompCode_Virt((m_DataStartLoc + Pos) & ~0xFFF, 0x1000, CRecompiler::Remove_MemViewer);
}
else if (g_Recompiler != NULL)
{
g_Recompiler->ClearRecompCode_Phys((m_DataStartLoc + Pos) & ~0xFFF, 0x1000, CRecompiler::Remove_MemViewer);
g_Recompiler->ClearRecompCode_Phys(PhysicalAddress & ~0xFFF, 0x1000, CRecompiler::Remove_MemViewer);
}
}
__except_catch()