diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-15 22:09:48 +0100 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-20 18:05:53 +0100 |
commit | 782592e6d393f4e38db5db58daba3f7fbf1786b4 (patch) | |
tree | db9535a5130d29d5d66f63548813889039d16386 /src/citra_qt/debugger/graphics_framebuffer.cpp | |
parent | fd2539121cddd6177a964770a6985f8880ca1646 (diff) |
citra-qt: Fix invalid memory read upon program startup.
This was caused by the framebuffer display widget not checking whether we are actually in a valid emulation state or not.
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.cpp')
-rw-r--r-- | src/citra_qt/debugger/graphics_framebuffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp index 61b61ef6d0..c055299a48 100644 --- a/src/citra_qt/debugger/graphics_framebuffer.cpp +++ b/src/citra_qt/debugger/graphics_framebuffer.cpp @@ -125,7 +125,8 @@ GraphicsFramebufferWidget::GraphicsFramebufferWidget(std::shared_ptr<Pica::Debug setWidget(main_widget); // Load current data - TODO: Make sure this works when emulation is not running - emit Update(); + if (debug_context && debug_context->at_breakpoint) + emit Update(); widget()->setEnabled(false); // TODO: Only enable if currently at breakpoint } |