MemoryView: Don't segfault if Core isn't running
There was a bug that caused MemoryView to indirectly cause a segfault; the simplest way to reproduce it is 1) start a game; 2) stop the game; 3) click on the Refresh button and watch Dolphin segfault. This commit fixes it by only calling PowerPC::HostIsRAMAddress when emulation is running.
This commit is contained in:
parent
be6aeaad33
commit
6fba48cd15
|
@ -312,11 +312,11 @@ void CMemoryView::OnPaint(wxPaintEvent& event)
|
|||
dc.SetTextForeground(*wxBLACK);
|
||||
}
|
||||
|
||||
if (!PowerPC::HostIsRAMAddress(address))
|
||||
continue;
|
||||
|
||||
if (debugger->IsAlive())
|
||||
{
|
||||
if (!PowerPC::HostIsRAMAddress(address))
|
||||
continue;
|
||||
|
||||
std::string dis;
|
||||
u32 mem_data = debugger->ReadExtraMemory(memory, address);
|
||||
|
||||
|
|
Loading…
Reference in New Issue