2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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.
This commit is contained in:
Tony Wasserka 2014-12-15 22:09:48 +01:00
parent fd2539121c
commit 782592e6d3

View file

@ -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
}