Procházet zdrojové kódy

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.
Tony Wasserka před 11 roky
rodič
revize
782592e6d3
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/citra_qt/debugger/graphics_framebuffer.cpp

+ 2 - 1
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
 }