fix bug when emulator close is triggered twice

This commit is contained in:
Franco Colmenarez 2021-11-19 19:31:58 -05:00
parent 52ad064ab5
commit 275cfb847f
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -77,7 +77,6 @@ pub fn start_eventloop() {
..
} => {
println!("The close button was pressed; stopping");
emulator.close();
*control_flow = ControlFlow::Exit
},
Event::MainEventsCleared => {