From 275cfb847fdceb617df711ece6772e5365badb6e Mon Sep 17 00:00:00 2001 From: Franco Colmenarez Date: Fri, 19 Nov 2021 19:31:58 -0500 Subject: [PATCH] fix bug when emulator close is triggered twice --- README.md | 2 +- src/render.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 658799c..fdcc3b8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Any help or suggestion is welcome! - [x] Interrupts - [x] Timer - [x] Joypad (not configurable yet) -- [X] PPU implementations +- [x] PPU implementations - [x] Render the pixels - [ ] MBC Implementations - [x] NoMBC diff --git a/src/render.rs b/src/render.rs index 129cd86..5522453 100644 --- a/src/render.rs +++ b/src/render.rs @@ -77,7 +77,6 @@ pub fn start_eventloop() { .. } => { println!("The close button was pressed; stopping"); - emulator.close(); *control_flow = ControlFlow::Exit }, Event::MainEventsCleared => {