mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00: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:
		
							parent
							
								
									fd2539121c
								
							
						
					
					
						commit
						782592e6d3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -125,6 +125,7 @@ GraphicsFramebufferWidget::GraphicsFramebufferWidget(std::shared_ptr<Pica::Debug | ||||||
|     setWidget(main_widget); |     setWidget(main_widget); | ||||||
| 
 | 
 | ||||||
|     // Load current data - TODO: Make sure this works when emulation is not running
 |     // Load current data - TODO: Make sure this works when emulation is not running
 | ||||||
|  |     if (debug_context && debug_context->at_breakpoint) | ||||||
|         emit Update(); |         emit Update(); | ||||||
|     widget()->setEnabled(false); // TODO: Only enable if currently at breakpoint
 |     widget()->setEnabled(false); // TODO: Only enable if currently at breakpoint
 | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue