mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2024-11-13 21:51:33 +00:00
fix bug when emulator close is triggered twice
This commit is contained in:
parent
52ad064ab5
commit
275cfb847f
@ -10,7 +10,7 @@ Any help or suggestion is welcome!
|
|||||||
- [x] Interrupts
|
- [x] Interrupts
|
||||||
- [x] Timer
|
- [x] Timer
|
||||||
- [x] Joypad (not configurable yet)
|
- [x] Joypad (not configurable yet)
|
||||||
- [X] PPU implementations
|
- [x] PPU implementations
|
||||||
- [x] Render the pixels
|
- [x] Render the pixels
|
||||||
- [ ] MBC Implementations
|
- [ ] MBC Implementations
|
||||||
- [x] NoMBC
|
- [x] NoMBC
|
||||||
|
@ -77,7 +77,6 @@ pub fn start_eventloop() {
|
|||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
println!("The close button was pressed; stopping");
|
println!("The close button was pressed; stopping");
|
||||||
emulator.close();
|
|
||||||
*control_flow = ControlFlow::Exit
|
*control_flow = ControlFlow::Exit
|
||||||
},
|
},
|
||||||
Event::MainEventsCleared => {
|
Event::MainEventsCleared => {
|
||||||
|
Loading…
Reference in New Issue
Block a user