all repos — mgba @ f013e2d8c731fc7025ef4c2fcbd06e1b57ee6c6e

mGBA Game Boy Advance Emulator

Qt: Fix a crash in the memory viewer
Jeffrey Pfau jeffrey@endrift.com
Wed, 04 Nov 2015 23:28:13 -0800
commit

f013e2d8c731fc7025ef4c2fcbd06e1b57ee6c6e

parent

066ba16864236e943fa1eedf61252b5595c5de42

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -14,6 +14,7 @@ - GBA Video: Fix _mix for 15-bit color

- VFS: Fix VFileReadline and remove _vfdReadline - Qt: Fix font size in memory viewer - GBA Memory: Fix DMA register writing behavior + - Qt: Fix a crash in the memory viewer Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper
M src/platform/qt/MemoryView.cppsrc/platform/qt/MemoryView.cpp

@@ -80,6 +80,9 @@ m_ui.sintVal->clear();

m_ui.uintVal->clear(); return; } + if (!m_controller->isLoaded()) { + return; + } ARMCore* cpu = m_controller->thread()->cpu; union { uint32_t u32;