Merge pull request #4284 from leoetlino/memview-crash-fix
MemoryView: Don't segfault if Core isn't running
This commit is contained in:
commit
05d6157c9b
|
@ -312,11 +312,11 @@ void CMemoryView::OnPaint(wxPaintEvent& event)
|
||||||
dc.SetTextForeground(*wxBLACK);
|
dc.SetTextForeground(*wxBLACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (debugger->IsAlive())
|
||||||
|
{
|
||||||
if (!PowerPC::HostIsRAMAddress(address))
|
if (!PowerPC::HostIsRAMAddress(address))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (debugger->IsAlive())
|
|
||||||
{
|
|
||||||
std::string dis;
|
std::string dis;
|
||||||
u32 mem_data = debugger->ReadExtraMemory(memory, address);
|
u32 mem_data = debugger->ReadExtraMemory(memory, address);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue