Skip to content
Snippets Groups Projects
Commit 782592e6 authored by Tony Wasserka's avatar Tony Wasserka
Browse files

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.
parent fd253912
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment